[nvim] Move neovim config to /nvim
This commit is contained in:
parent
e45c1694af
commit
5b567ad2ad
28 changed files with 0 additions and 0 deletions
27
nvim/after/plugin/gitgutter.lua
Normal file
27
nvim/after/plugin/gitgutter.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
-- Ensure there's always a gutter column so there's no stutter when changes cause it to appear.
|
||||
vim.wo.signcolumn = "yes"
|
||||
|
||||
local gitgutter_colorscheme_group = vim.api.nvim_create_augroup("GitGutterColorSchemeOverrides", { clear = true })
|
||||
|
||||
local function update_gitgutter_colors()
|
||||
vim.cmd [[
|
||||
hi! SignColumn ctermbg=233
|
||||
hi! GitGutterAdd ctermbg=233
|
||||
hi! GitGutterRemove ctermbg=233
|
||||
hi! GitGutterChange ctermbg=233
|
||||
hi! GitGutterChangeDelete ctermbg=233
|
||||
]]
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "GitGutter",
|
||||
callback = update_gitgutter_colors,
|
||||
group = gitgutter_colorscheme_group,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
callback = update_gitgutter_colors,
|
||||
group = gitgutter_colorscheme_group,
|
||||
})
|
||||
11
nvim/after/plugin/treesitter.lua
Normal file
11
nvim/after/plugin/treesitter.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
local treesitter_configs = require 'nvim-treesitter.configs'
|
||||
|
||||
treesitter_configs.setup {
|
||||
ensure_installed = { "lua", "vim" },
|
||||
sync_install = true,
|
||||
auto_install = true,
|
||||
hightlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue