Add neovim config with some plugins

This commit is contained in:
don philipe
2025-01-22 22:29:58 +01:00
parent f303f1aa1d
commit 01ce55d107
15 changed files with 228 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
return {
{'neovim/nvim-cmp'}
}

View File

@@ -0,0 +1,13 @@
local ok, vars = pcall(require, 'config.gen-private')
if not ok then
print("Missing gen-private configuration file.")
end
return {
{ "David-Kunz/gen.nvim",
opts = {
model = vars["model"],
host = vars["host"],
port = vars["port"],
}},
}

View File

@@ -0,0 +1,3 @@
return {
{'morhetz/gruvbox', config = function() vim.cmd.colorscheme("gruvbox") end }
}

View File

@@ -0,0 +1,5 @@
return {
{'neovim/nvim-lspconfig'},
{'hrsh7th/cmp-nvim-lsp'},
{'hrsh7th/nvim-cmp'},
}

View File

@@ -0,0 +1,6 @@
return {
-- mason for downloading language servers
{'williamboman/mason.nvim'},
-- mason-lspconfig to configure auto setup of language servers
{'williamboman/mason-lspconfig.nvim'},
}

View File

@@ -0,0 +1,9 @@
-- plugins form the "mini" plugin set https://github.com/echasnovski/mini.nvim?tab=readme-ov-file#modules
return {
-- auto-insert closing brackets etc.
{
'echasnovski/mini.pairs',
event = 'InsertEnter', -- lazy loading (when entering insert mode)
config = true, -- shorthand for calling plugins setup function
},
}

View File

@@ -0,0 +1,5 @@
return {
{'nvim-treesitter/nvim-treesitter'}
-- configure parsers via config/treesitter.lua
-- update parsers with :TSUpdate
}