add proper lsp support for nvim

This commit is contained in:
insects 2025-04-10 16:06:44 +02:00
parent 5f9abcb29a
commit 4e1fba9299
3 changed files with 72 additions and 3 deletions

View file

@ -1,5 +1,19 @@
-- Base plugins and libraries -- Base plugins and libraries
return { return {
"nvim-lua/plenary.nvim" "nvim-lua/plenary.nvim",
{
"folke/snacks.nvim",
priority = 1000, -- needs to be set up early
lazy = false,
opts = {
bigfiles = { enabled = true },
dashboard = { enabled = true },
indent = { enabled = true, animate = { enabled = false } },
input = { enabled = true },
lazygit = { enabled = true },
quickfile = { enabled = true },
statuscolumn = { enabled = true }
}
}
} }

View file

@ -0,0 +1,48 @@
-- LSP, linting, formatting, etc...
return {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end
},
{
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup()
end,
},
{
"neovim/nvim-lspconfig",
dependencies = {
"mason.nvim",
"williamboman/mason-lspconfig.nvim",
},
config = function()
require("lspconfig").lua_ls.setup {}
end
},
{
"folke/lazydev.nvim",
ft = "lua",
opts = {},
},
{
"saghen/blink.cmp",
version = "1.*",
opts = {
keymap = { preset = "default" },
sources = {
default = { "lazydev", "lsp", "path", "snippets", "buffer" },
providers = {
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
score_offset = 100
}
}
}
}
}
}

View file

@ -1,7 +1,14 @@
-- Telescope, and other file picker-related plugins -- Telescope, and other file picker-related plugins
return { return {
{
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
config = function()
local telescope = require("telescope")
telescope.setup()
telescope.load_extension("chezmoi")
end
},
{ {
"xvzc/chezmoi.nvim", "xvzc/chezmoi.nvim",
config = function() config = function()
@ -19,5 +26,5 @@ return {
}) })
} }
end end
} },
} }