More fixes and pluins to nvim
This commit is contained in:
parent
09966d3ae6
commit
47e7f07201
@ -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
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -97,3 +97,10 @@ keymap("n", "<leader>q", "<cmd>Bdelete! %d<cr>", opts)
|
|||||||
-- toggle whitespace --
|
-- toggle whitespace --
|
||||||
keymap("n", "<leader>w", "<cmd>set list!<cr>", opts)
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,6 +42,8 @@ for k, v in pairs(options) do
|
|||||||
vim.opt[k] = v
|
vim.opt[k] = v
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.cmd [[ command! Format execute 'lua vim.lsp.buf.format()' ]]
|
||||||
|
|
||||||
vim.g.vimwiki_list = {{path = '~/Documents/vimwiki', syntax = 'markdown', ext = '.md'}}
|
vim.g.vimwiki_list = {{path = '~/Documents/vimwiki', syntax = 'markdown', ext = '.md'}}
|
||||||
vim.g.nord_disable_background = true
|
vim.g.nord_disable_background = true
|
||||||
|
|
||||||
|
@ -84,6 +84,12 @@ return packer.startup(function(use)
|
|||||||
-- dicord fuckery
|
-- dicord fuckery
|
||||||
use 'andweeb/presence.nvim'
|
use 'andweeb/presence.nvim'
|
||||||
|
|
||||||
|
-- floaterm
|
||||||
|
use 'voldikss/vim-floaterm'
|
||||||
|
|
||||||
|
-- git gud
|
||||||
|
use 'lewis6991/gitsigns.nvim'
|
||||||
|
|
||||||
-- LaTeX
|
-- LaTeX
|
||||||
--use 'lervag/vimtex'
|
--use 'lervag/vimtex'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user