Fix proto parsing, update lazyvim & packages

This commit is contained in:
2024-08-08 11:21:57 -04:00
parent 58a5245d53
commit d9538cf15f
4 changed files with 66 additions and 74 deletions

11
lua/plugins/lspconfig.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
"neovim/nvim-lspconfig",
opts = {
servers = {
clangd = {
-- removing .proto from the list of filetypes since clangd doesn't seem to be able to parse them
filetypes = { "c", "cpp", "objc", "objcpp", "cuda" },
},
},
},
}

View File

@@ -1,18 +0,0 @@
return {
"danymat/neogen",
dependencies = "nvim-treesitter/nvim-treesitter",
config = true,
-- Uncomment next line if you want to follow only stable versions
-- version = "*"
opts = {
snippet_engine = "luasnip",
},
keys = {
{ "<leader>nf", "<cmd>lua require('neogen').generate()<CR>", desc = "Generate Neogen function annotation" },
{
"<leader>nc",
"<cmd>lua require('neogen').generate({ type = 'class' })<CR>",
desc = "Generate Neogen class annotation",
},
},
}