use lspconfig
This commit is contained in:
@@ -2,8 +2,6 @@ require("config.lazy")
|
|||||||
require("config.set")
|
require("config.set")
|
||||||
require("config.remap")
|
require("config.remap")
|
||||||
|
|
||||||
vim.lsp.enable({ "luals" })
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
callback = function(ev)
|
callback = function(ev)
|
||||||
local client = vim.lsp.get_client_by_id(ev.data.client_id)
|
local client = vim.lsp.get_client_by_id(ev.data.client_id)
|
||||||
@@ -13,6 +11,8 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.lsp.enable({'basedpyright', 'lua_ls', 'yamlls'})
|
||||||
|
|
||||||
vim.cmd("set completeopt+=noselect")
|
vim.cmd("set completeopt+=noselect")
|
||||||
vim.o.winborder='rounded'
|
vim.o.winborder='rounded'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
return {
|
|
||||||
cmd = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
return {
|
|
||||||
cmd = { "lua-language-server" },
|
|
||||||
root_markers = { ".luarc.json" },
|
|
||||||
filetypes = { "lua" },
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
|
{ "neovim/nvim-lspconfig" },
|
||||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
||||||
{ "hrsh7th/nvim-cmp" },
|
{ "hrsh7th/nvim-cmp" },
|
||||||
{ "hrsh7th/cmp-nvim-lsp" },
|
{ "hrsh7th/cmp-nvim-lsp" },
|
||||||
|
|||||||
Reference in New Issue
Block a user