|
|
@ -1,4 +1,14 @@
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
|
|
|
|
opts = function(_, opts)
|
|
|
|
|
|
|
|
if type(opts.ensure_installed) == "table" then
|
|
|
|
|
|
|
|
vim.list_extend(opts.ensure_installed, {
|
|
|
|
|
|
|
|
"nix",
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end,
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
---@class PluginLspOpts
|
|
|
|
---@class PluginLspOpts
|
|
|
@ -24,23 +34,15 @@ return {
|
|
|
|
keys[#keys + 1] = { "gl", vim.diagnostic.open_float, "Line Diagnostics" }
|
|
|
|
keys[#keys + 1] = { "gl", vim.diagnostic.open_float, "Line Diagnostics" }
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
opts = {
|
|
|
|
opts = {
|
|
|
|
diagnostics = {
|
|
|
|
diagnostics = { underline = false },
|
|
|
|
underline = false,
|
|
|
|
inlay_hints = { enabled = true },
|
|
|
|
},
|
|
|
|
|
|
|
|
inlay_hints = {
|
|
|
|
|
|
|
|
enabled = true,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
autoformat = false,
|
|
|
|
autoformat = false,
|
|
|
|
---@type lspconfig.options
|
|
|
|
---@type lspconfig.options
|
|
|
|
servers = {
|
|
|
|
servers = {
|
|
|
|
lua_ls = {
|
|
|
|
lua_ls = {
|
|
|
|
---@type LazyKeys[]
|
|
|
|
---@type LazyKeys[]
|
|
|
|
settings = {
|
|
|
|
settings = {
|
|
|
|
Lua = {
|
|
|
|
Lua = { telemetry = { enabled = false } },
|
|
|
|
telemetry = {
|
|
|
|
|
|
|
|
enabled = false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -64,16 +66,7 @@ return {
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
|
|
|
|
opts = function(_, opts)
|
|
|
|
|
|
|
|
if type(opts.ensure_installed) == "table" then
|
|
|
|
|
|
|
|
vim.list_extend(opts.ensure_installed, {
|
|
|
|
|
|
|
|
"nix",
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
dependencies = {
|
|
|
|
dependencies = {
|
|
|
@ -90,6 +83,7 @@ return {
|
|
|
|
local luasnip = require("luasnip")
|
|
|
|
local luasnip = require("luasnip")
|
|
|
|
local cmp = require("cmp")
|
|
|
|
local cmp = require("cmp")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
opts.experimental.ghost_text = false
|
|
|
|
opts.mapping = vim.tbl_extend("force", opts.mapping, {
|
|
|
|
opts.mapping = vim.tbl_extend("force", opts.mapping, {
|
|
|
|
["<M-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
|
|
|
|
["<M-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
|
|
|
|
["<M-k>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
|
|
|
|
["<M-k>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
|
|
|
@ -119,23 +113,8 @@ return {
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end, { "i", "s" }),
|
|
|
|
end, { "i", "s" }),
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
opts.experimental.ghost_text = false
|
|
|
|
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
|
|
|
|
"simrat39/rust-tools.nvim",
|
|
|
|
|
|
|
|
opts = {
|
|
|
|
|
|
|
|
tools = {
|
|
|
|
|
|
|
|
inlay_hints = {
|
|
|
|
|
|
|
|
auto = false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"lervag/vimtex",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"echasnovski/mini.surround",
|
|
|
|
"echasnovski/mini.surround",
|
|
|
|
opts = {
|
|
|
|
opts = {
|
|
|
@ -150,4 +129,11 @@ return {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"simrat39/rust-tools.nvim",
|
|
|
|
|
|
|
|
opts = {
|
|
|
|
|
|
|
|
tools = { inlay_hints = { auto = false } },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ "lervag/vimtex" },
|
|
|
|
}
|
|
|
|
}
|
|
|
|