mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-12 00:40:33 -07:00
fix lsp + conform + sleuth
This commit is contained in:
parent
91ba5541a3
commit
cc4abb76ee
18 changed files with 245 additions and 206 deletions
|
|
@ -1,16 +1,44 @@
|
|||
return {
|
||||
{
|
||||
'williamboman/mason.nvim',
|
||||
cmd = { "Mason", "MasonInstall", "MasonUpdate" },
|
||||
config = function(_, opts_)
|
||||
dofile(vim.g.base46_cache .. "mason")
|
||||
require('mason').setup(opts)
|
||||
end,
|
||||
},
|
||||
{'williamboman/mason-lspconfig.nvim'},
|
||||
{'VonHeikemen/lsp-zero.nvim', branch = 'v3.x'},
|
||||
{'neovim/nvim-lspconfig'},
|
||||
{'hrsh7th/cmp-nvim-lsp'},
|
||||
{'hrsh7th/nvim-cmp'},
|
||||
{'L3MON4D3/LuaSnip'},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
cmd = { "Mason", "MasonInstall", "MasonUpdate" },
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "mason")
|
||||
require("mason").setup(opts)
|
||||
end,
|
||||
},
|
||||
{ "williamboman/mason-lspconfig.nvim" },
|
||||
{
|
||||
"VonHeikemen/lsp-zero.nvim",
|
||||
branch = "v3.x",
|
||||
config = function()
|
||||
local lsp_zero = require "lsp-zero"
|
||||
lsp_zero.on_attach(function(client, bufnr)
|
||||
-- see :help lsp-zero-keybindings
|
||||
-- to learn the available actions
|
||||
lsp_zero.default_keymaps { buffer = bufnr }
|
||||
end)
|
||||
-- here you can setup the language servers
|
||||
require("mason").setup {}
|
||||
require("mason-lspconfig").setup {
|
||||
ensure_installed = {
|
||||
"tsserver",
|
||||
"rust_analyzer",
|
||||
"gopls",
|
||||
"clangd",
|
||||
"lua_ls",
|
||||
"pyright",
|
||||
},
|
||||
handlers = {
|
||||
function(server_name)
|
||||
require("lspconfig")[server_name].setup {}
|
||||
end,
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
{ "neovim/nvim-lspconfig" },
|
||||
{ "hrsh7th/cmp-nvim-lsp" },
|
||||
{ "hrsh7th/nvim-cmp" },
|
||||
{ "L3MON4D3/LuaSnip" },
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue