dev.lua (592B) - Raw
1 -- Updated to use vim.lsp.config (nvim 0.11+) instead of deprecated lspconfig 2 vim.lsp.config.clangd = { 3 cmd = { "nicer", "clangd" }, 4 filetypes = { "c", "cpp" }, 5 root_markers = { "compile_commands.json", ".clangd", ".git" } 6 } 7 8 vim.lsp.config.gopls = { 9 cmd = { "nicer", "@gopls@/bin/gopls" }, 10 filetypes = { "go" }, 11 root_markers = { "go.mod", ".git" } 12 } 13 14 -- Enable the LSP servers 15 vim.lsp.enable({ "clangd", "gopls" }) 16 17 vim.api.nvim_exec([[ 18 set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m 19 ]], false) 20 21 vim.filetype.add({extension = {star = 'python'}})