mirror of
https://github.com/don-philipe/dotfiles.git
synced 2025-11-08 22:57:03 +01:00
Add neovim config with some plugins
This commit is contained in:
3
.config/nvim/lua/plugins/cmp.lua
Normal file
3
.config/nvim/lua/plugins/cmp.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
{'neovim/nvim-cmp'}
|
||||
}
|
||||
13
.config/nvim/lua/plugins/gen.lua
Normal file
13
.config/nvim/lua/plugins/gen.lua
Normal 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"],
|
||||
}},
|
||||
}
|
||||
3
.config/nvim/lua/plugins/gruvbox.lua
Normal file
3
.config/nvim/lua/plugins/gruvbox.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
{'morhetz/gruvbox', config = function() vim.cmd.colorscheme("gruvbox") end }
|
||||
}
|
||||
5
.config/nvim/lua/plugins/lsp.lua
Normal file
5
.config/nvim/lua/plugins/lsp.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
{'neovim/nvim-lspconfig'},
|
||||
{'hrsh7th/cmp-nvim-lsp'},
|
||||
{'hrsh7th/nvim-cmp'},
|
||||
}
|
||||
6
.config/nvim/lua/plugins/mason.lua
Normal file
6
.config/nvim/lua/plugins/mason.lua
Normal 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'},
|
||||
}
|
||||
9
.config/nvim/lua/plugins/mini.lua
Normal file
9
.config/nvim/lua/plugins/mini.lua
Normal 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
|
||||
},
|
||||
}
|
||||
5
.config/nvim/lua/plugins/treesitter.lua
Normal file
5
.config/nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
{'nvim-treesitter/nvim-treesitter'}
|
||||
-- configure parsers via config/treesitter.lua
|
||||
-- update parsers with :TSUpdate
|
||||
}
|
||||
Reference in New Issue
Block a user