use lspconfig

This commit is contained in:
2025-04-15 22:21:09 +02:00
parent 5577628a22
commit 7322bc0f73
4 changed files with 3 additions and 12 deletions
+2 -2
View File
@@ -2,8 +2,6 @@ require("config.lazy")
require("config.set")
require("config.remap")
vim.lsp.enable({ "luals" })
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
@@ -13,6 +11,8 @@ vim.api.nvim_create_autocmd('LspAttach', {
end,
})
vim.lsp.enable({'basedpyright', 'lua_ls', 'yamlls'})
vim.cmd("set completeopt+=noselect")
vim.o.winborder='rounded'
-4
View File
@@ -1,4 +0,0 @@
return {
cmd = {}
}
-6
View File
@@ -1,6 +0,0 @@
return {
cmd = { "lua-language-server" },
root_markers = { ".luarc.json" },
filetypes = { "lua" },
}
+1
View File
@@ -1,4 +1,5 @@
return {
{ "neovim/nvim-lspconfig" },
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
{ "hrsh7th/nvim-cmp" },
{ "hrsh7th/cmp-nvim-lsp" },