feat: use lua-dev instead of custom sumneko config
This commit is contained in:
parent
5f032adc7a
commit
2a4c3cc85b
2 changed files with 5 additions and 17 deletions
|
@ -119,6 +119,9 @@ return require('packer').startup(function(use)
|
|||
|
||||
-- highlight current symbol
|
||||
"RRethy/vim-illuminate",
|
||||
|
||||
-- lua plugin development
|
||||
"folke/lua-dev.nvim",
|
||||
},
|
||||
config = function() require('plugins.nvim-lsp-setup') end,
|
||||
}
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
local utils = require("nvim-lsp-setup.utils")
|
||||
|
||||
local nvim_runtime_path = vim.split(package.path, ";")
|
||||
table.insert(nvim_runtime_path, "lua/?.lua")
|
||||
table.insert(nvim_runtime_path, "lua/?/init.lua")
|
||||
|
||||
require("nvim-lsp-setup").setup({
|
||||
default_mappings = false,
|
||||
mappings = {
|
||||
|
@ -23,7 +17,7 @@ require("nvim-lsp-setup").setup({
|
|||
["<C-n>"] = "lua vim.diagnostic.goto_next()",
|
||||
},
|
||||
on_attach = function(client)
|
||||
utils.format_on_save(client)
|
||||
require("nvim-lsp-setup.utils").format_on_save(client)
|
||||
require("illuminate").on_attach(client)
|
||||
end,
|
||||
servers = {
|
||||
|
@ -48,16 +42,7 @@ require("nvim-lsp-setup").setup({
|
|||
},
|
||||
},
|
||||
}),
|
||||
sumneko_lua = {
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = { version = "LuaJIT", path = nvim_runtime_path },
|
||||
diagnostics = { globals = { "vim" } },
|
||||
workspace = { library = vim.api.nvim_get_runtime_file("", true) },
|
||||
telemetry = { enable = false }
|
||||
}
|
||||
}
|
||||
},
|
||||
sumneko_lua = require('lua-dev').setup({}),
|
||||
terraformls = {},
|
||||
volar = {},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue