add proper lsp support for nvim
This commit is contained in:
parent
5f9abcb29a
commit
4e1fba9299
3 changed files with 72 additions and 3 deletions
48
dot_config/nvim/lua/plugins/lsp.lua
Normal file
48
dot_config/nvim/lua/plugins/lsp.lua
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue