neovim: add clangd lsp
This commit is contained in:
@@ -31,6 +31,15 @@
|
||||
formatterMode = "typstyle";
|
||||
};
|
||||
};
|
||||
clangd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
filetypes = [
|
||||
"c"
|
||||
"h"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
# There has been some drama, the repo was archived and stuff.
|
||||
@@ -62,6 +71,14 @@
|
||||
action = "<cmd>Telescope find_files<CR>";
|
||||
key = "<leader>ff";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.lsp.buf.definition()<CR>";
|
||||
key = "<leader>gd";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.lsp.buf.declaration()<CR>";
|
||||
key = "<leader>gD";
|
||||
}
|
||||
];
|
||||
}
|
||||
// lib.optionalAttrs (!stable) {
|
||||
|
||||
Reference in New Issue
Block a user