[nvim] Move neovim config to /nvim
This commit is contained in:
parent
e45c1694af
commit
5b567ad2ad
28 changed files with 0 additions and 0 deletions
4
nvim/after/ftplugin/css.lua
Normal file
4
nvim/after/ftplugin/css.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.softtabstop = 2
|
||||
4
nvim/after/ftplugin/gitcommit.vim
Normal file
4
nvim/after/ftplugin/gitcommit.vim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
" Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
" The default text width for git commit messages is 72 characters, which is just too dang small.
|
||||
setlocal textwidth=80
|
||||
4
nvim/after/ftplugin/gohtmltmpl.lua
Normal file
4
nvim/after/ftplugin/gohtmltmpl.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
vim.bo.shiftwidth = 2
|
||||
vim.bo.softtabstop = 2
|
||||
4
nvim/after/ftplugin/html.lua
Normal file
4
nvim/after/ftplugin/html.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.softtabstop = 2
|
||||
18
nvim/after/ftplugin/lua.lua
Normal file
18
nvim/after/ftplugin/lua.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
local expand = vim.fn.expand
|
||||
local resolve = vim.fn.resolve
|
||||
local stdpath = vim.fn.stdpath
|
||||
|
||||
-- My dotfiles are usually symlinks. Resolve them so the path comparison makes sense.
|
||||
local configPath = resolve(stdpath("config"))
|
||||
local fullPath = resolve(expand("%:p"))
|
||||
if string.find(fullPath, configPath) == 1 then
|
||||
vim.opt_local.path = {
|
||||
".",
|
||||
"",
|
||||
configPath .. "/**",
|
||||
}
|
||||
|
||||
vim.opt_local.suffixesadd:append(".lua")
|
||||
end
|
||||
2
nvim/after/ftplugin/python.lua
Normal file
2
nvim/after/ftplugin/python.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
3
nvim/after/ftplugin/rust.lua
Normal file
3
nvim/after/ftplugin/rust.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
vim.opt.foldmethod = 'syntax'
|
||||
1
nvim/after/ftplugin/text.vim
Normal file
1
nvim/after/ftplugin/text.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
abbr hawaii Hawai‘i
|
||||
15
nvim/after/ftplugin/zsh.lua
Normal file
15
nvim/after/ftplugin/zsh.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
local zshFPath = vim.env.FPATH
|
||||
if zshFPath then
|
||||
local paths = vim.split(zshFPath, ":")
|
||||
vim.bo.path = ".," .. table.concat(paths, ",") .. ",,"
|
||||
else
|
||||
local defaultFPath = {
|
||||
"~/.dotfiles/zsh/func/**",
|
||||
"~/.zsh/func/**",
|
||||
"/usr/local/share/zsh/site-functions",
|
||||
"/usr/share/zsh/site-functions"
|
||||
}
|
||||
vim.bo.path = ".," .. table.concat(defaultFPath) .. ",,"
|
||||
end
|
||||
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,
|
||||
},
|
||||
}
|
||||
7
nvim/after/syntax/css.vim
Normal file
7
nvim/after/syntax/css.vim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
" css.vim
|
||||
" Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
syn match cssLogicalBoxProp contained "\<padding-\(block\|inline\)\=\(-\(start\|end\)\)\=\>"
|
||||
syn match cssLogicalBoxProp contained "\<margin-\(block\|inline\)\=\(-\(start\|end\)\)\=\>"
|
||||
|
||||
hi def link cssLogicalBoxProp cssProp
|
||||
Loading…
Add table
Add a link
Reference in a new issue