Squashed 'users/daniel/configs/system/nvim/nvim/' content from commit f10b473
git-subtree-dir: users/daniel/configs/system/nvim/nvim git-subtree-split: f10b4730176b567e15911b3c1a7c5a31c82c8b8e
This commit is contained in:
72
lua/plugins/lsp.lua
Normal file
72
lua/plugins/lsp.lua
Normal file
@@ -0,0 +1,72 @@
|
||||
return {
|
||||
"b0o/SchemaStore.nvim",
|
||||
{
|
||||
"folke/neodev.nvim",
|
||||
opts = {
|
||||
override = function(root_dir, library)
|
||||
for _, astronvim_config in ipairs(astronvim.supported_configs) do
|
||||
if root_dir:match(astronvim_config) then
|
||||
library.plugins = true
|
||||
break
|
||||
end
|
||||
end
|
||||
vim.b.neodev_enabled = library.enabled
|
||||
end,
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
cmd = { "LspInstall", "LspUninstall" },
|
||||
opts = function(_, opts)
|
||||
if not opts.handlers then opts.handlers = {} end
|
||||
opts.handlers[1] = function(server) require("astronvim.utils.lsp").setup(server) end
|
||||
end,
|
||||
config = require "plugins.configs.mason-lspconfig",
|
||||
},
|
||||
},
|
||||
event = "User AstroFile",
|
||||
config = require "plugins.configs.lspconfig",
|
||||
},
|
||||
{
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
dependencies = {
|
||||
{
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
cmd = { "NullLsInstall", "NullLsUninstall" },
|
||||
opts = { handlers = {} },
|
||||
},
|
||||
},
|
||||
event = "User AstroFile",
|
||||
opts = function() return { on_attach = require("astronvim.utils.lsp").on_attach } end,
|
||||
},
|
||||
{
|
||||
"stevearc/aerial.nvim",
|
||||
event = "User AstroFile",
|
||||
opts = {
|
||||
attach_mode = "global",
|
||||
backends = { "lsp", "treesitter", "markdown", "man" },
|
||||
layout = { min_width = 28 },
|
||||
show_guides = true,
|
||||
filter_kind = false,
|
||||
guides = {
|
||||
mid_item = "├ ",
|
||||
last_item = "└ ",
|
||||
nested_top = "│ ",
|
||||
whitespace = " ",
|
||||
},
|
||||
keymaps = {
|
||||
["[y"] = "actions.prev",
|
||||
["]y"] = "actions.next",
|
||||
["[Y"] = "actions.prev_up",
|
||||
["]Y"] = "actions.next_up",
|
||||
["{"] = false,
|
||||
["}"] = false,
|
||||
["[["] = false,
|
||||
["]]"] = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user