aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2025-09-29 00:33:17 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2025-09-29 00:33:17 -0400
commitfbee61c6fd16ab16b66c4b194941e2450c0c51db (patch)
treec6253b7087a1560f47842f7765654d348deb99e8
parent659299db5ba43bfdc8d8106e6ed012a40ab73eb8 (diff)
Minor language server changesHEADmain
-rw-r--r--nvim/init.lua1
-rw-r--r--nvim/lsp/tex.lua (renamed from nvim/lsp/texlab.lua)0
-rw-r--r--nvim/lua/lsp.lua1
-rw-r--r--nvim/lua/plugins/filetypes.lua6
-rw-r--r--nvim/lua/plugins/lsp.lua32
5 files changed, 19 insertions, 21 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 71bee88..4988d7d 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -41,7 +41,6 @@ vim.opt.title = true
vim.opt.showmatch = true
vim.opt.showmode = false
vim.opt.mouse = "anv"
-vim.opt.winborder = "single"
--change mouse menu
vim.api.nvim_command([[aunmenu PopUp.How-to\ disable\ mouse]])
diff --git a/nvim/lsp/texlab.lua b/nvim/lsp/tex.lua
index 67d1079..67d1079 100644
--- a/nvim/lsp/texlab.lua
+++ b/nvim/lsp/tex.lua
diff --git a/nvim/lua/lsp.lua b/nvim/lua/lsp.lua
index ab1cd86..71f07b1 100644
--- a/nvim/lua/lsp.lua
+++ b/nvim/lua/lsp.lua
@@ -5,4 +5,5 @@ vim.lsp.enable({
"gopls",
"clangd",
"lua_ls",
+ "texlab",
})
diff --git a/nvim/lua/plugins/filetypes.lua b/nvim/lua/plugins/filetypes.lua
index b6b5cd5..3759f71 100644
--- a/nvim/lua/plugins/filetypes.lua
+++ b/nvim/lua/plugins/filetypes.lua
@@ -3,9 +3,9 @@ return {
'vim-pandoc/vim-pandoc',
enabled = false,
ft = { "markdown", "pandoc" },
- keys = {
- { 'gO', vim.cmd.TOC, desc = "Table of contents" }
- }
+ -- keys = {
+ -- { 'gO', vim.cmd.TOC, desc = "Table of contents" }
+ -- }
},
{
'vim-pandoc/vim-pandoc-syntax',
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
index f71ebda..d1f7e0e 100644
--- a/nvim/lua/plugins/lsp.lua
+++ b/nvim/lua/plugins/lsp.lua
@@ -42,8 +42,7 @@ local lspconfig = {
desc = "Go to definition"
},
{
- -- TODO: consider changing binding to grf
- '<leader>f',
+ 'grf',
function()
vim.lsp.buf.format()
end,
@@ -51,7 +50,7 @@ local lspconfig = {
desc = "Format entire buffer"
},
{
- '<leader>f',
+ 'grf',
function()
local opts = {}
local clients = vim.lsp.get_clients({ bufnr = 0 })
@@ -67,7 +66,17 @@ local lspconfig = {
end,
mode = { 'v' },
desc = "Format visual selection"
- }
+ },
+ {
+ 'K',
+ function()
+ vim.lsp.buf.hover({
+ border = "single"
+ })
+ end,
+ mode = {'n', 'v'},
+ desc = "Open lsp hover"
+ },
}
}
@@ -77,6 +86,7 @@ local mason = {
build = ":MasonUpdate"
}
+-- PERF: very slow to load
local mason_lspconfig = {
'williamboman/mason-lspconfig.nvim',
dependencies = {
@@ -85,29 +95,17 @@ local mason_lspconfig = {
opts = {
ensure_installed = {
"basedpyright",
- "clangd",
"cssls",
- "gopls",
"html",
"ruff",
"ts_ls"
},
handlers = {
+ -- TODO: change config to vim.lsp.config
function(server_name)
require('lspconfig')[server_name].setup({})
end,
- ["lua_ls"] = function()
- require('lspconfig').lua_ls.setup({
- settings = {
- Lua = {
- diagnostics = {
- globals = { "vim" }
- }
- }
- }
- })
- end,
["basedpyright"] = function()
require('lspconfig').basedpyright.setup({
settings = {