basic C lang support
This commit is contained in:
parent
9f2c4dcda7
commit
a56468eefe
4 changed files with 13 additions and 2 deletions
|
@ -20,7 +20,8 @@ ENV NEOVIM_PKGS="\
|
|||
wl-clipboard \
|
||||
ansible-config \
|
||||
ansible \
|
||||
libicu"
|
||||
libicu \
|
||||
cmake"
|
||||
|
||||
ENV GENERAL_PKGS="\
|
||||
tar \
|
||||
|
@ -33,6 +34,7 @@ ENV MASON_PKGS=" \
|
|||
css-lsp \
|
||||
cssmodules-language-server \
|
||||
dockerfile-language-server \
|
||||
cmake-language-server \
|
||||
html-lsp \
|
||||
json-lsp \
|
||||
marksman \
|
||||
|
|
|
@ -29,5 +29,6 @@ return {
|
|||
-- - { exclude: string[] }: All servers set up via lspconfig, except the ones provided in the list, are automatically installed.
|
||||
-- Example: automatic_installation = { exclude = { "rust_analyzer", "solargraph" } }
|
||||
automatic_installation = true,
|
||||
automatic_enable = true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -191,5 +191,13 @@ return {
|
|||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
require 'lspconfig'.clangd.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
require 'lspconfig'.cmake.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
end
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ return function()
|
|||
require 'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all"
|
||||
ensure_installed = { "helm", "awk", "bash", "comment",
|
||||
"css", "csv", "devicetree", "diff", "dockerfile", "git_config",
|
||||
"css", "csv", "c", "cmake", "devicetree", "diff", "dockerfile", "git_config",
|
||||
"git_rebase", "gitattributes", "gitcommit",
|
||||
"html", "htmldjango", "http", "ini",
|
||||
"json", "kconfig",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue