Remove deprecated nvim-lspconfig plugin
This commit is contained in:
45
init.vim
45
init.vim
@@ -41,7 +41,6 @@ Plug 'iruzo/ripgrep.nvim'
|
|||||||
|
|
||||||
" For managing lsps
|
" For managing lsps
|
||||||
Plug 'williamboman/mason.nvim'
|
Plug 'williamboman/mason.nvim'
|
||||||
Plug 'neovim/nvim-lspconfig'
|
|
||||||
|
|
||||||
" Delete, change and add surrounding pairs
|
" Delete, change and add surrounding pairs
|
||||||
Plug 'kylechui/nvim-surround'
|
Plug 'kylechui/nvim-surround'
|
||||||
@@ -201,43 +200,13 @@ require('telescope').setup({
|
|||||||
.
|
.
|
||||||
|
|
||||||
lua <<
|
lua <<
|
||||||
local lspconfig = require('lspconfig')
|
vim.lsp.config['lua_ls'] = {
|
||||||
local configs = require('lspconfig.configs')
|
cmd = { 'lua-language-server' },
|
||||||
|
filetypes = { 'lua' },
|
||||||
if not configs.lua_ls then
|
root_markers = { '.luarc.json', '.git' },
|
||||||
configs.lua_ls = {
|
settings = { Lua = { diagnostics = { globals = { "vim" } } } }
|
||||||
default_config = {
|
}
|
||||||
cmd = {vim.fn.expand('~/.local/bin/lua-language-server')},
|
vim.lsp.enable('lua_ls')
|
||||||
filetypes = {'lua'},
|
|
||||||
single_file_support = true,
|
|
||||||
autostart = true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
|
||||||
settings = {
|
|
||||||
Lua = {
|
|
||||||
diagnostics = {
|
|
||||||
globals = { "love" },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
lspconfig.cssls.setup({})
|
|
||||||
.
|
|
||||||
|
|
||||||
lua <<
|
|
||||||
-- require('lspconfig').lua_ls.setup({
|
|
||||||
-- settings = {
|
|
||||||
-- Lua = {
|
|
||||||
-- runtime = {
|
|
||||||
-- version = "LuaJIT"
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- })
|
|
||||||
.
|
.
|
||||||
|
|
||||||
lua require("mason").setup()
|
lua require("mason").setup()
|
||||||
|
|||||||
Reference in New Issue
Block a user