diff options
author | Matthew Lemon <y@yulqen.org> | 2023-06-04 09:41:15 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-06-04 09:41:15 +0100 |
commit | 7ed7de16b7c721e84fe9cb796130e61398873f7f (patch) | |
tree | 2058372b3365cb7e9c0b26440b1ea0df253049e4 /nvim-using-vimrc/init.vim | |
parent | 734bbe593468b0a7898ea991c0bcdef7c7d3f208 (diff) |
Adds dark blue theme
Diffstat (limited to '')
-rw-r--r-- | nvim-using-vimrc/init.vim | 73 |
1 files changed, 35 insertions, 38 deletions
diff --git a/nvim-using-vimrc/init.vim b/nvim-using-vimrc/init.vim index c89fd52..80f2131 100644 --- a/nvim-using-vimrc/init.vim +++ b/nvim-using-vimrc/init.vim @@ -11,7 +11,7 @@ nnoremap <leader>ev <C-w>s<C-w>j<C-w>L:e $MYVIMRC<cr> " leader let maplocalleader = "\\" -let mapleader = " " +let mapleader = "," " Function to allow adding a line of text to taskwarrior function! TaskWarriorAddCurrentLine() @@ -142,6 +142,7 @@ noremap <silent> <leader>rs :!clear; sh %<CR> " essential plugins call plug#begin() Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } +Plug 'lambdalisue/fern.vim' Plug 'junegunn/goyo.vim' Plug 'junegunn/fzf.vim' Plug 'github/copilot.vim' @@ -156,17 +157,12 @@ Plug 'fatih/vim-go', {'do': ':GoUpdateBinaries' } Plug 'tpope/vim-dispatch' Plug 'tpope/vim-commentary' "Plug 'ycm-core/YouCompleteMe' -"Plug 'jayli/vim-easycomplete' -Plug 'rose-pine/vim' +"Plug 'davidhalter/jedi-vim' Plug 'SirVer/UltiSnips' Plug 'honza/vim-snippets' Plug 'dense-analysis/ale' -Plug 'davidhalter/jedi-vim' call plug#end() -" easycomplete -"let g:easycomplete_tab_trigger="<c-space>" - " jedi-vim let g:jedi#goto_command = "<leader>d" let g:jedi#goto_assignments_command = "<leader>g" @@ -179,39 +175,40 @@ let g:jedi#rename_command = "<leader>r" let g:jedi#rename_command_keep_name = "<leader>R" " " YCM -let g:ycm_enable_inlay_hints = 1 -nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints) -nnoremap gd :YcmCompleter GoToDefinition<CR> -nnoremap <leader>gr :YcmCompleter GoToReferences<CR> -nnoremap K :YcmCompleter GetDoc<CR> -" this will disable tab, allowing it to be used for ultisnips -let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] -let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] -let g:ycm_python_interpreter_path = '.venv/bin/python3' -let g:ycm_auto_trigger = 1 -let g:ycm_enable_inlay_hints = 0 -let g:ycm_python_sys_path = [] -let g:ycm_show_diagnostics_ui = 0 -let g:ycm_extra_conf_vim_data = [ - \ 'g:ycm_python_interpreter_path', - \ 'g:ycm_python_sys_path' - \] -let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py' -nnoremap <leader>jd :YcmCompleter GoTo<CR> -imap <silent> <C-l> <Plug>(YCMToggleSignatureHelp)'. - +" let g:ycm_enable_inlay_hints = 1 +" nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints) +" nnoremap gd :YcmCompleter GoToDefinition<CR> +" nnoremap <leader>gr :YcmCompleter GoToReferences<CR> +" nnoremap K :YcmCompleter GetDoc<CR> +" " this will disable tab, allowing it to be used for ultisnips +" let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] +" let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] +" let g:ycm_python_interpreter_path = '.venv/bin/python3' +" let g:ycm_auto_trigger = 1 +" let g:ycm_enable_inlay_hints = 0 +" let g:ycm_python_sys_path = [] +" let g:ycm_show_diagnostics_ui = 0 +" let g:ycm_extra_conf_vim_data = [ +" \ 'g:ycm_python_interpreter_path', +" \ 'g:ycm_python_sys_path' +" \] +" let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py' +" nnoremap <leader>jd :YcmCompleter GoTo<CR> +" imap <silent> <C-l> <Plug>(YCMToggleSignatureHelp)'. " snippets " Trigger configuration. You need to change this to something other than <tab> if you use one of the following: -" - https://github.com/Valloric/YouCompleteMe -" - https://github.com/nvim-lua/completion-nvim let g:UltiSnipsExpandTrigger="<tab>" let g:UltiSnipsJumpForwardTrigger="<c-b>" let g:UltiSnipsJumpBackwardTrigger="<c-z>" " If you want :UltiSnipsEdit to split your window. let g:UltiSnipsEditSplit="vertical" +let g:UltiSnipsExpandTrigger="<tab>" +let g:UltiSnipsJumpForwardTrigger="<c-j>" +let g:UltiSnipsJumpBackwardTrigger="<c-k>" +set completefunc=UltiSnips#Complete " vim-test nmap <silent> tn :TestNearest<CR> @@ -236,8 +233,7 @@ set shell=/bin/sh set hi=500 set scrolloff=0 " set novisualbell -set relativenumber "show line numbers -set number +"set relativenumber "show line numbers set wildignore=**/__pycache*/** set wildmenu "enable a menu that shows tab completion options in the status bar set wildchar=<TAB> @@ -266,6 +262,9 @@ set hidden set t_Co=256 "set t_Co=0 - switches off all colours set path+=** +set relativenumber +"set spell +set number set more set signcolumn=yes set colorcolumn=0 @@ -273,6 +272,10 @@ set equalalways set showmode set nobackup set listchars=tab:»→,trail:␣ +set shortmess+=c +set complete+=kspell +set completeopt=menuone,longest,preview +set omnifunc=syntaxcomplete#Complete if executable('ag') set grepprg=ag\ --vimgrep\ --nogroup\ --nocolor endif @@ -297,12 +300,6 @@ function! s:copy_filename_as_mdlink() endfunction autocmd BufLeave * call s:copy_filename_as_mdlink() -" Ultisnips -let g:UltiSnipsExpandTrigger="<tab>" -let g:UltiSnipsJumpForwardTrigger="<c-j>" -let g:UltiSnipsJumpBackwardTrigger="<c-k>" -"set completefunc=UltiSnips#Complete -set omnifunc=syntaxcomplete#Complete " vim-test |