diff options
Diffstat (limited to 'private_dot_config')
| -rw-r--r-- | private_dot_config/nvim/init.lua | 23 | ||||
| -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, 41 insertions, 27 deletions
diff --git a/private_dot_config/nvim/init.lua b/private_dot_config/nvim/init.lua index b8c51a5..29608d4 100644 --- a/private_dot_config/nvim/init.lua +++ b/private_dot_config/nvim/init.lua @@ -24,7 +24,8 @@ require('packer').startup(function(use) -- use 'togglebyte/togglerust' -- Rust debugging tools -- use 'chriskempson/base16-vim' -- Base16 color schemes use 'NLKNguyen/papercolor-theme' -- PaperColor theme - use 'projekt0n/github-nvim-theme' + -- use 'projekt0n/github-nvim-theme' + use 'Shatur/neovim-ayu' use 'nvim-telescope/telescope.nvim' -- Fuzzy finder use 'neovim/nvim-lspconfig' -- LSP configuration for multiple languages use 'hrsh7th/nvim-cmp' -- Autocompletion engine @@ -80,10 +81,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 +129,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() @@ -169,10 +171,11 @@ vim.opt.cursorline = true -- **Highlight settings** -- Set custom highlights for various UI components -vim.cmd('colorscheme github_dark_default') +-- vim.cmd('colorscheme github_dark_default') +vim.cmd('colorscheme ayu') vim.cmd [[ highlight Normal guibg=NONE - highlight NormalNC guibg=#111111 + " highlight NormalNC guibg=#111111 highlight NonText guibg=NONE highlight LineNr guibg=NONE highlight CursorLine guibg=NONE @@ -182,9 +185,9 @@ vim.cmd [[ "highlight StatusLine guibg=#000000 guifg=Yellow "highlight StatusLineNC guibg=#000000 guifg=Yellow highlight SignColumn guibg=NONE - highlight GitGutterChange guibg=#000000 - highlight GitGutterAdd guibg=#000000 - highlight GitGutterDelete guibg=#000000 + highlight GitGutterChange guifg=#f1c40f guibg=#000000 + highlight GitGutterAdd guifg=#2ecc71 guibg=#000000 + highlight GitGutterDelete guifg=#e74c3c guibg=#000000 ]] -- Keybindings 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..9d220c4 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 @@ -119,6 +119,16 @@ _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" + }, + ["neovim-ayu"] = { + loaded = true, + path = "/home/santo/.local/share/nvim/site/pack/packer/start/neovim-ayu", + url = "https://github.com/Shatur/neovim-ayu" + }, ["nvim-cmp"] = { loaded = true, path = "/home/santo/.local/share/nvim/site/pack/packer/start/nvim-cmp", |