More fixes and pluins to nvim

This commit is contained in:
_N0x 2024-10-31 21:58:41 +01:00
parent 09966d3ae6
commit 47e7f07201
4 changed files with 56 additions and 0 deletions

View File

@ -322,3 +322,44 @@ require('bufferline').setup {
},
}
}
-- Git sign
require("gitsigns").setup {
signs = {
add = { text = '' },
change = { text = '' },
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
untracked = { text = '' },
},
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
watch_gitdir = {
interval = 1000,
follow_files = true
},
attach_to_untracked = true,
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = {
virt_text = true,
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
delay = 1000,
ignore_whitespace = false,
},
sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default
max_file_length = 40000,
preview_config = {
-- Options passed to nvim_open_win
border = 'single',
style = 'minimal',
relative = 'cursor',
row = 0,
col = 1
},
}

View File

@ -97,3 +97,10 @@ keymap("n", "<leader>q", "<cmd>Bdelete! %d<cr>", opts)
-- toggle whitespace --
keymap("n", "<leader>w", "<cmd>set list!<cr>", opts)
-- floaterm
keymap("n", "<F7>", ":FloatermNew<cr>", opts)
keymap("n", "<F8>", ":FloatermPrev<cr>", opts)
keymap("n", "<F9>", ":FloatermNext<cr>", opts)
keymap("n", "<F12>", ":FloatermToggle<cr>", opts)

View File

@ -42,6 +42,8 @@ for k, v in pairs(options) do
vim.opt[k] = v
end
vim.cmd [[ command! Format execute 'lua vim.lsp.buf.format()' ]]
vim.g.vimwiki_list = {{path = '~/Documents/vimwiki', syntax = 'markdown', ext = '.md'}}
vim.g.nord_disable_background = true

View File

@ -84,6 +84,12 @@ return packer.startup(function(use)
-- dicord fuckery
use 'andweeb/presence.nvim'
-- floaterm
use 'voldikss/vim-floaterm'
-- git gud
use 'lewis6991/gitsigns.nvim'
-- LaTeX
--use 'lervag/vimtex'