This commit is contained in:
nganhkhoa 2021-05-05 10:00:42 +07:00
parent 60a51b9b10
commit 6d763296a7
3 changed files with 14 additions and 3 deletions

View File

@ -21,7 +21,7 @@
(nvim.set_keymap "" :sr "<Plug>(operator-surround-replace)" {:silent true}) (nvim.set_keymap "" :sr "<Plug>(operator-surround-replace)" {:silent true})
;; language-client neovim ;; language-client neovim
(set nvim.g.LanguageClient_loggingFile "/Users/lap12003/.config/nvim/lc.log") ;; (set nvim.g.LanguageClient_loggingFile "~/.config/nvim/lc.log")
(set nvim.g.LanguageClient_serverCommands (set nvim.g.LanguageClient_serverCommands
{:c ["ccls"] {:c ["ccls"]
:cpp ["ccls"] :cpp ["ccls"]
@ -30,6 +30,7 @@
:go ["gopls"] :go ["gopls"]
:rust ["rls"]}) :rust ["rls"]})
(nvim.command "set completefunc=LanguageClient#complete")
(nvim.set_keymap "" :gd "<Plug>(lcn-definition)" {:silent true}) (nvim.set_keymap "" :gd "<Plug>(lcn-definition)" {:silent true})
(nvim.set_keymap "" :gh "<Plug>(lcn-hover)" {:silent true}) (nvim.set_keymap "" :gh "<Plug>(lcn-hover)" {:silent true})
(nvim.set_keymap "" :gr "<Plug>(lcn-references)" {:silent true}) (nvim.set_keymap "" :gr "<Plug>(lcn-references)" {:silent true})

View File

@ -14,6 +14,11 @@ au! BufRead,BufNewFile,BufWritePost *.ptree set filetype=pollen
require('plugins') require('plugins')
require('kommentary.config').configure_language("default", { kommentary = require('kommentary.config')
kommentary.configure_language("default", {
prefer_single_line_comments = true,
})
kommentary.configure_language("objcpp", {
prefer_single_line_comments = true, prefer_single_line_comments = true,
}) })

View File

@ -64,7 +64,7 @@ packer.startup(function(use)
use 'wakatime/vim-wakatime' use 'wakatime/vim-wakatime'
use 'sheerun/vim-polyglot' -- use 'sheerun/vim-polyglot'
use 'rescript-lang/vim-rescript' use 'rescript-lang/vim-rescript'
use 'otherjoel/vim-pollen' use 'otherjoel/vim-pollen'
@ -73,4 +73,9 @@ packer.startup(function(use)
branch = 'next', branch = 'next',
run = 'bash install.sh' run = 'bash install.sh'
} }
use {
'kkoomen/vim-doge',
run = ':call doge#install()'
}
end) end)