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 \
|
wl-clipboard \
|
||||||
ansible-config \
|
ansible-config \
|
||||||
ansible \
|
ansible \
|
||||||
libicu"
|
libicu \
|
||||||
|
cmake"
|
||||||
|
|
||||||
ENV GENERAL_PKGS="\
|
ENV GENERAL_PKGS="\
|
||||||
tar \
|
tar \
|
||||||
|
@ -33,6 +34,7 @@ ENV MASON_PKGS=" \
|
||||||
css-lsp \
|
css-lsp \
|
||||||
cssmodules-language-server \
|
cssmodules-language-server \
|
||||||
dockerfile-language-server \
|
dockerfile-language-server \
|
||||||
|
cmake-language-server \
|
||||||
html-lsp \
|
html-lsp \
|
||||||
json-lsp \
|
json-lsp \
|
||||||
marksman \
|
marksman \
|
||||||
|
|
|
@ -29,5 +29,6 @@ return {
|
||||||
-- - { exclude: string[] }: All servers set up via lspconfig, except the ones provided in the list, are automatically installed.
|
-- - { 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" } }
|
-- Example: automatic_installation = { exclude = { "rust_analyzer", "solargraph" } }
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
|
automatic_enable = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,5 +191,13 @@ return {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
|
require 'lspconfig'.clangd.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
|
}
|
||||||
|
require 'lspconfig'.cmake.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ return function()
|
||||||
require 'nvim-treesitter.configs'.setup {
|
require 'nvim-treesitter.configs'.setup {
|
||||||
-- A list of parser names, or "all"
|
-- A list of parser names, or "all"
|
||||||
ensure_installed = { "helm", "awk", "bash", "comment",
|
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",
|
"git_rebase", "gitattributes", "gitcommit",
|
||||||
"html", "htmldjango", "http", "ini",
|
"html", "htmldjango", "http", "ini",
|
||||||
"json", "kconfig",
|
"json", "kconfig",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue