Dotfiles/nvim/.config/nvim/init.vim
Jonathan Hodgson 75235782b9 Adds treesitter and biscuit plugins + tweak to sudo write
The two plugins were added along with relevant configuration for each

If in neovim and sudo_askpass isn't set, vim will display a warning if
WW is typed in command mode
2021-11-17 14:41:49 +00:00

45 lines
927 B
VimL

let mapleader = "\<Space>"
let maplocalleader = "\\"
if has('packages')
packadd! AnsiEsc.vim
packadd! fzf.vim
packadd! gruvbox
packadd! lexima.vim
packadd! ultisnips
packadd! vim-fugitive
packadd! vim-json
packadd! vim-less
packadd! vim-repeat
packadd! vim-snippets
packadd! vim-surround
packadd! vim-tridactyl
packadd! vim-vinegar
if has('nvim')
packadd! deoplete.nvim
packadd! deoplete-abook
packadd! deoplete-lsp
packadd! deoplete-notmuch
packadd! firenvim
packadd! nvim-treesitter
packadd! nvim-biscuits
lua <<EOF
if ( vim.lsp ~= nil ) then
vim.cmd "packadd! nvim-lspconfig"
end
EOF
endif
endif
" Enables filetype detection as well as filetype specific indent rules and
" plugins
filetype indent plugin on "
" Enables filetype specific syntaxs
syntax on
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<S-tab>"