re-enable clangd et al
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
-- Updated to use vim.lsp.config (nvim 0.11+) instead of deprecated lspconfig
|
||||
vim.lsp.config.clangd = {
|
||||
cmd = { "nicer", "clangd" }
|
||||
cmd = { "nicer", "clangd" },
|
||||
filetypes = { "c", "cpp" },
|
||||
root_markers = { "compile_commands.json", ".clangd", ".git" }
|
||||
}
|
||||
|
||||
vim.lsp.config.gopls = {
|
||||
cmd = { "nicer", "@gopls@/bin/gopls" }
|
||||
cmd = { "nicer", "@gopls@/bin/gopls" },
|
||||
filetypes = { "go" },
|
||||
root_markers = { "go.mod", ".git" }
|
||||
}
|
||||
|
||||
-- Enable the LSP servers
|
||||
vim.lsp.enable({ "clangd", "gopls" })
|
||||
|
||||
vim.api.nvim_exec([[
|
||||
set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m
|
||||
]], false)
|
||||
|
||||
Reference in New Issue
Block a user