Improved NVIM overall

This commit is contained in:
AfonsoCMSousa
2025-12-17 18:43:36 +00:00
parent 5505642a8e
commit 3ccb1a8c66
3 changed files with 44 additions and 14 deletions
+6 -13
View File
@@ -32,15 +32,6 @@ local servers = {
lua_ls = { cmd = { "lua-language-server" } },
ts_ls = { cmd = { "typescript-language-server", "--stdio" } },
pyright = { cmd = { "pyright-langserver", "--stdio" } },
clangd = {
cmd = { "clangd" },
on_attach = on_attach,
capabilities = capabilities,
init_options = {
clangdFileStatus = true,
fallbackFlags = { "-style={UseTab: ForIndentation}" },
}
},
}
for name, config in pairs(servers) do
@@ -51,8 +42,10 @@ for name, config in pairs(servers) do
vim.lsp.start(vim.lsp.config[name])
end
require('lspconfig').asm_lsp.setup{
cmd = { "asm-lsp" },
filetypes = { "asm", "nasm", "gas" },
require('lspconfig').asm_lsp.setup {
cmd = { "asm-lsp" },
filetypes = { "asm", "nasm", "gas" },
}
require('lspconfig').clangd.setup {
cmd = { "clangd", "--std=c++23" },
}