more nvim tweak

This commit is contained in:
François
2025-11-19 17:53:38 +01:00
parent a1e26b01ab
commit 300b58b88d
3 changed files with 29 additions and 3 deletions

View File

@@ -31,3 +31,9 @@ map("n", "<A-p>", "<Cmd>BufferPin<CR>")
--map("n", "<leader>s", ":%s//g<Left><Left>") --replace all --map("n", "<leader>s", ":%s//g<Left><Left>") --replace all
map("n", "<leader>t", ":NvimTreeToggle<CR>") --open file explorer map("n", "<leader>t", ":NvimTreeToggle<CR>") --open file explorer
map("n", "<leader>l", ":Twilight<CR>") --surrounding dim map("n", "<leader>l", ":Twilight<CR>") --surrounding dim
-- fzf and grep
map("n", "<leader>f", ":lua require('fzf-lua').files()<CR>") --search cwd
map("n", "<leader>Fr", ":lua require('fzf-lua').resume()<CR>") --last search
map("n", "<leader>g", ":lua require('fzf-lua').grep()<CR>") --grep
map("n", "<leader>G", ":lua require('fzf-lua').grep_cword()<CR>") --grep word under cursor

View File

@@ -1,11 +1,17 @@
local options = { local options = {
cursorline = true, --highlight line
termguicolors = true, termguicolors = true,
number = true,
tabstop = 4, number = true, --numbered lines
--indentation stuff
softtabstop = 0, softtabstop = 0,
tabstop = 4,
expandtab = true, expandtab = true,
shiftwidth = 4, shiftwidth = 4,
smarttab = true, smarttab = true,
--print blank and tabs
list = true, list = true,
listchars = 'tab:» ,lead:•,trail:•', listchars = 'tab:» ,lead:•,trail:•',
} }

View File

@@ -1 +1,15 @@
require("barbar").setup({}) require("barbar").setup({
sidebar_filetypes = { -- Set the filetypes which barbar will offset itself for
-- Use the default values: {event = 'BufWinLeave', text = '', align = 'left'}
NvimTree = true,
-- Or, specify the text used for the offset:
undotree = {
text = 'undotree',
align = 'left', -- *optionally* specify an alignment (either 'left', 'center', or 'right')
},
-- Or, specify the event which the sidebar executes when leaving:
['neo-tree'] = {event = 'BufWipeout'},
-- Or, specify all three
Outline = {event = 'BufWinLeave', text = 'symbols-outline', align = 'right'},
},
})