moar nvim confs
This commit is contained in:
parent
8065b790fe
commit
cc1ca652ce
|
@ -19,7 +19,8 @@ set cursorline " highlight current cursorline
|
|||
set ttyfast " Speed up scrolling in Vim
|
||||
set fdm=indent " foldingmethod syntax
|
||||
set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup.
|
||||
"set spell " enable spell check (may need to download language package)
|
||||
set numberwidth=4
|
||||
set spell " enable spell check (may need to download language package)
|
||||
set timeout timeoutlen=400
|
||||
set ttimeoutlen=0
|
||||
|
||||
|
@ -40,6 +41,8 @@ noremap OO O<ESC>
|
|||
" H and L for end and beginning
|
||||
nmap H ^
|
||||
nmap L $
|
||||
vmap H ^
|
||||
vmap L $
|
||||
|
||||
" usefull functions for arrow keys
|
||||
" (and force the user to use hjkl)
|
||||
|
@ -95,6 +98,3 @@ nnoremap <C-Left> :vertical resize +1<CR>
|
|||
nnoremap <C-Right> :vertical resize -1<CR>
|
||||
nnoremap <C-Up> :resize -1<CR>
|
||||
nnoremap <C-Down> :resize +1<CR>
|
||||
|
||||
" remove extra gutter width for line numbers
|
||||
set numberwidth=5
|
||||
|
|
|
@ -34,6 +34,9 @@ runtime nvim-table-mode.vim
|
|||
" load tabbar
|
||||
runtime tagbar.vim
|
||||
|
||||
" load suda
|
||||
runtime suda.vim
|
||||
|
||||
" load ALE (another language server or something that works with COC)
|
||||
"runtime ale.vim
|
||||
|
||||
|
@ -86,10 +89,10 @@ nnoremap <silent> <A-c> <Cmd>BufferClose<CR>
|
|||
" Magic buffer-picking mode
|
||||
nnoremap <silent> <C-p> <Cmd>BufferPick<CR>
|
||||
" Sort automatically by..."
|
||||
nnoremap <silent> <Space>bb <Cmd>BufferOrderByBufferNumber<CR>
|
||||
nnoremap <silent> <Space>bd <Cmd>BufferOrderByDirectory<CR>
|
||||
nnoremap <silent> <Space>bl <Cmd>BufferOrderByLanguage<CR>
|
||||
nnoremap <silent> <Space>bw <Cmd>BufferOrderByWindowNumber<CR>
|
||||
nnoremap <silent> <leader>bb <Cmd>BufferOrderByBufferNumber<CR>
|
||||
nnoremap <silent> <leader>bd <Cmd>BufferOrderByDirectory<CR>
|
||||
nnoremap <silent> <leader>bl <Cmd>BufferOrderByLanguage<CR>
|
||||
nnoremap <silent> <leader>bw <Cmd>BufferOrderByWindowNumber<CR>
|
||||
|
||||
" Other:
|
||||
" :BarbarEnable - enables barbar (enabled by default)
|
||||
|
|
|
@ -14,8 +14,7 @@ local function my_on_attach(bufnr)
|
|||
end
|
||||
|
||||
-- default mappings
|
||||
-- causes weird bugs, somehow it works without that?
|
||||
--api.config.mappings.default_on_attach(bufnr)
|
||||
api.config.mappings.default_on_attach(bufnr)
|
||||
|
||||
-- custom mappings
|
||||
-- cd
|
||||
|
|
|
@ -22,6 +22,7 @@ Plug 'nvim-tree/nvim-tree.lua'
|
|||
Plug 'nvim-tree/nvim-web-devicons'
|
||||
Plug 'rust-lang/rust.vim'
|
||||
Plug 'preservim/tagbar'
|
||||
Plug 'lambdalisue/suda.vim'
|
||||
"Plug 'dense-analysis/ale'
|
||||
|
||||
call plug#end()
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
" automatically ask for a password when trying to do something I don't have
|
||||
" permission for
|
||||
let g:suda_smart_edit = 1
|
Loading…
Reference in New Issue