From 3a6f7f565de32260837ee74b9e2433e54b19f701 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 16 Apr 2025 11:49:18 +0200 Subject: Add lualine and fix Trouble --- private_dot_config/nvim/init.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'private_dot_config/nvim/init.lua') diff --git a/private_dot_config/nvim/init.lua b/private_dot_config/nvim/init.lua index 092d647..b8c51a5 100644 --- a/private_dot_config/nvim/init.lua +++ b/private_dot_config/nvim/init.lua @@ -50,6 +50,11 @@ require('packer').startup(function(use) use 'koraa/proverif.vim' + use { + 'nvim-lualine/lualine.nvim', + requires = { 'nvim-tree/nvim-web-devicons', opt = true } + } + -- Automatically set up the configuration after cloning packer.nvim if packer_bootstrap then require('packer').sync() @@ -172,6 +177,7 @@ vim.cmd [[ highlight LineNr guibg=NONE highlight CursorLine guibg=NONE highlight CursorLineNr guibg=NONE guifg=Yellow + highlight StatusLineNC guibg=#0d1117 guifg=#cacaca highlight Error guibg=red guifg=#000000 "highlight StatusLine guibg=#000000 guifg=Yellow "highlight StatusLineNC guibg=#000000 guifg=Yellow @@ -201,7 +207,7 @@ vim.api.nvim_set_keymap('n', '', ':NvimTreeToggle', { noremap = true }) vim.api.nvim_set_keymap('n', 'pa', ':set paste', { noremap = true }) -- Enable paste mode vim.api.nvim_set_keymap('n', 'npa', ':set nopaste', { noremap = true }) -- Disable paste mode vim.api.nvim_set_keymap('n', 'cr', ':Cargo run', { noremap = true }) -- Run `cargo run` for Rust projects -vim.api.nvim_set_keymap('n', 'xx', 'TroubleToggle', { noremap = true }) -- Toggle Trouble diagnostic window +vim.api.nvim_set_keymap('n', 'd', 'Trouble diagnostics', { noremap = true }) -- Toggle Trouble diagnostic window vim.api.nvim_set_keymap('n', 'ff', 'Telescope find_files', { noremap = true }) -- Find files with Telescope vim.api.nvim_set_keymap('n', 'fg', 'Telescope live_grep', { noremap = true }) -- Live grep with Telescope vim.api.nvim_set_keymap('n', 'fh', 'Telescope help_tags', { noremap = true }) -- Search help tags with Telescope @@ -219,13 +225,15 @@ require('todo-comments').setup {} require('crates').setup {} require('nvim-treesitter.configs').setup { highlight = { enable = true } } require('lsp-colors').setup {} +require('Comment').setup() -- require("ibl").setup { indent = {char = "¦"} } -- vim.cmd.highlight('clear @ibl.scope.underline.1') --- General settings +-- General settings from ~/.config/nvim/lua/ require('git') -- Load git-related settings require('lsp_conf') -- Load LSP configuration require('dap_conf') +require('evil_lualine') -- Set up language client for Go vim.g.LanguageClient_serverCommands = { go = { 'gopls' } } -- cgit v1.2.3-18-g5258