add proper lsp support for nvim
This commit is contained in:
parent
5f9abcb29a
commit
4e1fba9299
3 changed files with 72 additions and 3 deletions
|
@ -1,5 +1,19 @@
|
|||
-- Base plugins and libraries
|
||||
|
||||
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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +1,14 @@
|
|||
-- Telescope, and other file picker-related plugins
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
config = function()
|
||||
local telescope = require("telescope")
|
||||
telescope.setup()
|
||||
telescope.load_extension("chezmoi")
|
||||
end
|
||||
},
|
||||
{
|
||||
"xvzc/chezmoi.nvim",
|
||||
config = function()
|
||||
|
@ -19,5 +26,5 @@ return {
|
|||
})
|
||||
}
|
||||
end
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue