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

@ -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
}
}
}
}
}
}