sumneko to lua_ls{
This commit is contained in:
+7
-8
@@ -26,9 +26,9 @@ vim.g.coq_settings = {
|
||||
local coq = require('coq')
|
||||
|
||||
require('coq_3p') {
|
||||
{ src = 'vimtex', short_name = 'TEX' },
|
||||
{ src = 'vimtex', short_name = 'TEX' },
|
||||
{ src = 'nvimlua', short_name = 'NLUA', conf_only = true },
|
||||
{ src = 'bc', short_name = 'CALC', precision = 8 },
|
||||
{ src = 'bc', short_name = 'CALC', precision = 8 },
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ local function find_repo_root(names)
|
||||
end
|
||||
|
||||
local lsp_confs = {
|
||||
sumneko_lua = {
|
||||
lua_ls = {
|
||||
settings = {
|
||||
Lua = {
|
||||
-- Settings for working with nvim (copied from https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#sumneko_lua)
|
||||
@@ -127,7 +127,6 @@ local lsp_confs = {
|
||||
},
|
||||
svelte = {},
|
||||
svls = {},
|
||||
|
||||
}
|
||||
|
||||
local lsp_special_setup = {
|
||||
@@ -189,9 +188,9 @@ vim.diagnostic.config({
|
||||
do -- signs
|
||||
local signs = {
|
||||
{ 'DiagnosticSignError', text = '×', texthl = 'DiagnosticSignError' },
|
||||
{ 'DiagnosticSignWarn', text = '>', texthl = 'DiagnosticSignWarn' },
|
||||
{ 'DiagnosticSignInfo', text = 'I', texthl = 'DiagnosticSignInfo' },
|
||||
{ 'DiagnosticSignHint', text = 'H', texthl = 'DiagnosticSignHint' },
|
||||
{ 'DiagnosticSignWarn', text = '>', texthl = 'DiagnosticSignWarn' },
|
||||
{ 'DiagnosticSignInfo', text = 'I', texthl = 'DiagnosticSignInfo' },
|
||||
{ 'DiagnosticSignHint', text = 'H', texthl = 'DiagnosticSignHint' },
|
||||
}
|
||||
for _, sign in pairs(signs) do
|
||||
local name = sign[1]
|
||||
@@ -232,7 +231,7 @@ M.format_on_save_hook = function()
|
||||
end
|
||||
|
||||
vim.cmd [[
|
||||
augroup hoverlspconfig
|
||||
augroup hoverlspconfig
|
||||
au!
|
||||
" diagnostic on hover
|
||||
au BufWritePre * lua require'lsp'.format_on_save_hook()
|
||||
|
||||
Reference in New Issue
Block a user