From a9e08be10a91faca09976e1dc92fac9235270ff1 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 22 May 2025 21:15:27 +0200 Subject: nvim: remove numbers and fix error matches --- private_dot_config/nvim/lua/lsp_conf.lua | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'private_dot_config/nvim/lua') diff --git a/private_dot_config/nvim/lua/lsp_conf.lua b/private_dot_config/nvim/lua/lsp_conf.lua index 60ee126..15fa695 100644 --- a/private_dot_config/nvim/lua/lsp_conf.lua +++ b/private_dot_config/nvim/lua/lsp_conf.lua @@ -27,7 +27,7 @@ local common_on_attach = function(client, bufnr) -- Use vim.diagnostic.open_float for showing line diagnostics (replacing deprecated call) vim.api.nvim_buf_set_keymap(bufnr, "n", "e", "lua vim.diagnostic.open_float()", opts) vim.keymap.set('n', '', 'lua vim.lsp.buf.format {async = true}', opts) - + -- Autoformat on save vim.cmd("autocmd BufWritePre lua vim.lsp.buf.format {async = true}") end @@ -41,6 +41,7 @@ local servers = { 'ocamllsp', 'ruff', 'rust_analyzer', + -- 'hls', } capabilities.offsetEncoding = { "utf-16" } @@ -62,20 +63,20 @@ nvim_lsp.ts_ls.setup { cmd = { "typescript-language-server", "--stdio" } } -nvim_lsp.pyright.setup { - settings = { - pyright = { - -- Using Ruff's import organizer - disableOrganizeImports = true, - }, - python = { - analysis = { - -- Ignore all files for analysis to exclusively use Ruff for linting - ignore = { '*' }, - }, - }, - }, -} +-- nvim_lsp.pyright.setup { +-- settings = { +-- pyright = { +-- -- Using Ruff's import organizer +-- disableOrganizeImports = true, +-- }, +-- python = { +-- analysis = { +-- -- Ignore all files for analysis to exclusively use Ruff for linting +-- ignore = { '*' }, +-- }, +-- }, +-- }, +-- } vim.lsp.inlay_hint.enable(true, { 0 }) -- cgit v1.2.3-18-g5258