replace sumneko with lua_ls

This commit is contained in:
DanRoscigno 2023-04-13 15:29:41 -04:00
parent 8dc2477c09
commit 4399361d16
1 changed files with 2 additions and 27 deletions

View File

@ -74,8 +74,6 @@ require('packer').startup(function(use)
-- filetype plugin allows me to associate mdx files with markdown -- filetype plugin allows me to associate mdx files with markdown
use { 'nathom/filetype.nvim' } use { 'nathom/filetype.nvim' }
-- grammar-guard (uses ltex-ls)
use { 'brymer-meneses/grammar-guard.nvim' }
-- Add custom plugins to packer from /nvim/lua/custom/plugins.lua -- Add custom plugins to packer from /nvim/lua/custom/plugins.lua
local has_plugins, plugins = pcall(require, 'custom.plugins') local has_plugins, plugins = pcall(require, 'custom.plugins')
@ -385,7 +383,7 @@ require('mason').setup()
-- Enable the following language servers -- Enable the following language servers
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed -- Feel free to add/remove any LSPs that you want here. They will automatically be installed
local servers = { 'ltex', 'marksman', 'pyright', 'tsserver', 'sumneko_lua' } local servers = { 'marksman', 'pyright', 'tsserver', 'lua_ls' }
-- Ensure the servers above are installed -- Ensure the servers above are installed
require('mason-lspconfig').setup { require('mason-lspconfig').setup {
@ -413,7 +411,7 @@ local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, 'lua/?.lua') table.insert(runtime_path, 'lua/?.lua')
table.insert(runtime_path, 'lua/?/init.lua') table.insert(runtime_path, 'lua/?/init.lua')
require('lspconfig').sumneko_lua.setup { require('lspconfig').lua_ls.setup {
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
settings = { settings = {
@ -477,29 +475,6 @@ cmp.setup {
}, },
} }
require("grammar-guard").init()
-- setup LSP config
require("lspconfig").grammar_guard.setup({
cmd = { '/home/droscigno/.local/share/nvim/mason/packages/ltex-ls/ltex-ls/bin/ltex-ls' },
settings = {
ltex = {
enabled = { "latex", "tex", "bib", "markdown" },
language = "en",
diagnosticSeverity = "information",
setenceCacheSize = 2000,
additionalRules = {
enablePickyRules = true,
motherTongue = "en",
},
trace = { server = "verbose" },
dictionary = {},
disabledRules = {},
hiddenFalsePositives = {},
},
},
})
-- Use Marksman for markdown -- Use Marksman for markdown
require'lspconfig'.marksman.setup{} require'lspconfig'.marksman.setup{}