mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 22:00:14 +00:00
cleanup and vim filetypes
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
{
|
||||
"rust-analyzer.serverPath": "/usr/local/bin/rust-analyzer",
|
||||
"rust-analyzer.checkOnSave.enable": true,
|
||||
"diagnostic-languageserver.filetypes": {
|
||||
"sh": "shellcheck"
|
||||
}
|
||||
"rust-analyzer.serverPath": "/usr/local/bin/rust-analyzer",
|
||||
"rust-analyzer.checkOnSave.enable": true,
|
||||
"diagnostic-languageserver.filetypes": {
|
||||
"sh": "shellcheck"
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
"--------
|
||||
|
||||
" Basic Settings
|
||||
filetype plugin on " Load the plugin for current filetype (vimwiki)
|
||||
filetype plugin on " Load the plugin for current filetype
|
||||
syntax enable " Syntax highlighting
|
||||
set termguicolors " Set to truecolor
|
||||
colorscheme gruvbox " Installed in autoload/ and colors/
|
||||
@ -38,16 +38,12 @@ if has("autocmd")
|
||||
endif
|
||||
|
||||
" Better backup, swap and undo storage
|
||||
set noswapfile " Instead of swaps, create backups (less annoying)
|
||||
set noswapfile " Instead of swaps, create backups
|
||||
set backup " Easier to recover and more secure
|
||||
set undofile " Keeps undos after quit
|
||||
set backupdir=~/.config/nvim/dirs/backup
|
||||
set undodir=~/.config/nvim/dirs/undo
|
||||
|
||||
" Keep selection when tabbing
|
||||
vnoremap < <gv
|
||||
vnoremap > >gv
|
||||
|
||||
" Create backup directories if they don't exist
|
||||
if !isdirectory(&backupdir)
|
||||
call mkdir(&backupdir, "p")
|
||||
@ -55,3 +51,15 @@ endif
|
||||
if !isdirectory(&undodir)
|
||||
call mkdir(&undodir, "p")
|
||||
endif
|
||||
|
||||
" Keep selection when tabbing
|
||||
vnoremap < <gv
|
||||
vnoremap > >gv
|
||||
|
||||
" Force filetype patterns that Vim doesn't know about
|
||||
au BufRead,BufNewFile *.Brewfile setfiletype brewfile
|
||||
au BufRead,BufNewFile tmux.conf* setfiletype tmux
|
||||
au BufRead,BufNewFile *ignore.*link setfiletype gitignore
|
||||
au BufRead,BufNewFile gitconfig.*link setfiletype gitconfig
|
||||
au BufRead,BufNewFile *.toml.*link setfiletype toml
|
||||
au BufRead,BufNewFile .env* set ft=text | set syntax=sh
|
||||
|
Reference in New Issue
Block a user