mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-07-12 16:35:13 +02:00
Replaced packer with lazyvim plugin manager
This commit is contained in:
31
.config/nvim/lua/plugins/neoconf.lua
Normal file
31
.config/nvim/lua/plugins/neoconf.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
return {
|
||||
{ 'folke/neoconf.nvim',
|
||||
config = function ()
|
||||
require("neoconf").setup({
|
||||
-- override any of the default settings here
|
||||
plugins = {
|
||||
-- configures lsp clients with settings in the following order:
|
||||
-- - lua settings passed in lspconfig setup
|
||||
-- - global json settings
|
||||
-- - local json settings
|
||||
lspconfig = {
|
||||
enabled = true,
|
||||
},
|
||||
-- configures jsonls to get completion in .nvim.settings.json files
|
||||
jsonls = {
|
||||
enabled = true,
|
||||
-- only show completion in json settings for configured lsp servers
|
||||
configured_servers_only = false,
|
||||
},
|
||||
-- configures lua_ls to get completion of lspconfig server settings
|
||||
lua_ls = {
|
||||
-- by default, lua_ls annotations are only enabled in your neovim config directory
|
||||
enabled_for_neovim_config = true,
|
||||
-- explicitely enable adding annotations. Mostly relevant to put in your local .nvim.settings.json file
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user