mirror of
https://github.com/materusPL/nixos-config
synced 2026-04-02 16:17:21 +02:00
Add more neovim plugins
This commit is contained in:
parent
ec3cac1c98
commit
7a2647d5ae
@ -26,6 +26,31 @@ if vim.fn.executable("git") == 1 then
|
||||
|
||||
local opts = {}
|
||||
local plugins = {
|
||||
{
|
||||
"folke/lazydev.nvim",
|
||||
ft = "lua", -- only load on lua files
|
||||
opts = {
|
||||
library = {
|
||||
-- See the configuration section for more details
|
||||
-- Load luvit types when the `vim.uv` word is found
|
||||
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
||||
},
|
||||
},
|
||||
},
|
||||
{ -- optional cmp completion source for require statements and module annotations
|
||||
"hrsh7th/nvim-cmp",
|
||||
opts = function(_, opts)
|
||||
opts.sources = opts.sources or {}
|
||||
table.insert(opts.sources, {
|
||||
name = "lazydev",
|
||||
group_index = 0, -- set group index to 0 to skip loading LuaLS completions
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
'https://github.com/neovim/nvim-lspconfig'
|
||||
},
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
---@module 'oil'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user