diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-05-22 21:15:27 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-05-22 21:15:27 +0200 |
commit | a9e08be10a91faca09976e1dc92fac9235270ff1 (patch) | |
tree | 8f235280e7ba21b68b3a1f655ef8349c05969e33 /private_dot_config/nvim/lua/lsp_conf.lua | |
parent | 3a6f7f565de32260837ee74b9e2433e54b19f701 (diff) |
nvim: remove numbers and fix error matchesmain
Diffstat (limited to 'private_dot_config/nvim/lua/lsp_conf.lua')
-rw-r--r-- | private_dot_config/nvim/lua/lsp_conf.lua | 31 |
1 files changed, 16 insertions, 15 deletions
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", "<space>e", "<cmd>lua vim.diagnostic.open_float()<CR>", opts) vim.keymap.set('n', '<A-f>', '<cmd>lua vim.lsp.buf.format {async = true}<cr>', opts) - + -- Autoformat on save vim.cmd("autocmd BufWritePre <buffer> 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 }) |