more nvim tweak
This commit is contained in:
@@ -31,3 +31,9 @@ map("n", "<A-p>", "<Cmd>BufferPin<CR>")
|
||||
--map("n", "<leader>s", ":%s//g<Left><Left>") --replace all
|
||||
map("n", "<leader>t", ":NvimTreeToggle<CR>") --open file explorer
|
||||
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
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
local options = {
|
||||
cursorline = true, --highlight line
|
||||
termguicolors = true,
|
||||
number = true,
|
||||
tabstop = 4,
|
||||
|
||||
number = true, --numbered lines
|
||||
|
||||
--indentation stuff
|
||||
softtabstop = 0,
|
||||
tabstop = 4,
|
||||
expandtab = true,
|
||||
shiftwidth = 4,
|
||||
smarttab = true,
|
||||
|
||||
--print blank and tabs
|
||||
list = true,
|
||||
listchars = 'tab:» ,lead:•,trail:•',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user