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 | |
parent | 3a6f7f565de32260837ee74b9e2433e54b19f701 (diff) |
nvim: remove numbers and fix error matchesmain
-rw-r--r-- | private_dot_config/nvim/init.lua | 9 | ||||
-rw-r--r-- | private_dot_config/nvim/lua/lsp_conf.lua | 31 | ||||
-rw-r--r-- | private_dot_config/nvim/plugin/packer_compiled.lua | 14 |
3 files changed, 33 insertions, 21 deletions
diff --git a/private_dot_config/nvim/init.lua b/private_dot_config/nvim/init.lua index b8c51a5..b5eed15 100644 --- a/private_dot_config/nvim/init.lua +++ b/private_dot_config/nvim/init.lua @@ -80,10 +80,10 @@ vim.opt.wildmode = { "longest", "list", "full" } vim.opt.wildignore = "*.png,*.jpg,*.gif,*.swp,*.o,*.pyc,vendor" -- Show absolute line numbers -vim.opt.number = true +-- vim.opt.number = true -- Show relative line numbers -vim.opt.relativenumber = true +-- vim.opt.relativenumber = true -- Set text width to 80 characters vim.opt.textwidth = 80 @@ -128,10 +128,11 @@ vim.opt.laststatus = 2 -- Show invisible characters (e.g., tabs, spaces, etc.) vim.opt.list = true +vim.opt.showmatch = true + -- Define characters for different invisible characters vim.opt.listchars = { eol = '⏎', tab = '» ', trail = 'ˑ', nbsp = '⎵' } -vim.cmd([[match Error /.*\t$/]]) -vim.cmd([[match Error /.*\s$/]]) +vim.cmd([[match Error /\s\+$/]]) vim.api.nvim_create_autocmd("FileType", { pattern = { "go", "c", "cpp" }, callback = function() 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 }) diff --git a/private_dot_config/nvim/plugin/packer_compiled.lua b/private_dot_config/nvim/plugin/packer_compiled.lua index 37c8963..73a8a69 100644 --- a/private_dot_config/nvim/plugin/packer_compiled.lua +++ b/private_dot_config/nvim/plugin/packer_compiled.lua @@ -49,8 +49,8 @@ local function save_profiles(threshold) end time([[Luarocks path setup]], true) -local package_path_str = "/home/santo/.cache/nvim/packer_hererocks/2.1.1713484068/share/lua/5.1/?.lua;/home/santo/.cache/nvim/packer_hererocks/2.1.1713484068/share/lua/5.1/?/init.lua;/home/santo/.cache/nvim/packer_hererocks/2.1.1713484068/lib/luarocks/rocks-5.1/?.lua;/home/santo/.cache/nvim/packer_hererocks/2.1.1713484068/lib/luarocks/rocks-5.1/?/init.lua" -local install_cpath_pattern = "/home/santo/.cache/nvim/packer_hererocks/2.1.1713484068/lib/lua/5.1/?.so" +local package_path_str = "/home/santo/.cache/nvim/packer_hererocks/2.1.1741730670/share/lua/5.1/?.lua;/home/santo/.cache/nvim/packer_hererocks/2.1.1741730670/share/lua/5.1/?/init.lua;/home/santo/.cache/nvim/packer_hererocks/2.1.1741730670/lib/luarocks/rocks-5.1/?.lua;/home/santo/.cache/nvim/packer_hererocks/2.1.1741730670/lib/luarocks/rocks-5.1/?/init.lua" +local install_cpath_pattern = "/home/santo/.cache/nvim/packer_hererocks/2.1.1741730670/lib/lua/5.1/?.so" if not string.find(package.path, package_path_str, 1, true) then package.path = package.path .. ';' .. package_path_str end @@ -104,6 +104,11 @@ _G.packer_plugins = { path = "/home/santo/.local/share/nvim/site/pack/packer/start/diffview.nvim", url = "https://github.com/sindrets/diffview.nvim" }, + ["github-nvim-theme"] = { + loaded = true, + path = "/home/santo/.local/share/nvim/site/pack/packer/start/github-nvim-theme", + url = "https://github.com/projekt0n/github-nvim-theme" + }, ["gitsigns.nvim"] = { loaded = true, path = "/home/santo/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", @@ -119,6 +124,11 @@ _G.packer_plugins = { path = "/home/santo/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim", url = "https://github.com/ray-x/lsp_signature.nvim" }, + ["lualine.nvim"] = { + loaded = true, + path = "/home/santo/.local/share/nvim/site/pack/packer/start/lualine.nvim", + url = "https://github.com/nvim-lualine/lualine.nvim" + }, ["nvim-cmp"] = { loaded = true, path = "/home/santo/.local/share/nvim/site/pack/packer/start/nvim-cmp", |