diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-11-28 21:35:56 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-11-28 21:35:56 +0100 |
commit | a68865ab318826d166582581cfc50b01d7d6a874 (patch) | |
tree | 7190446b048620ea2c785adb7d755aba06d2883d /dotvimrc | |
parent | e946aaa3812b4406b9db74191330648b8d10f8a1 (diff) | |
download | vimrc-a68865ab318826d166582581cfc50b01d7d6a874.tar.gz vimrc-a68865ab318826d166582581cfc50b01d7d6a874.tar.bz2 vimrc-a68865ab318826d166582581cfc50b01d7d6a874.zip |
Update plug, install vim-terraform and add a few lsp maps
Diffstat (limited to 'dotvimrc')
-rw-r--r-- | dotvimrc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -66,6 +66,7 @@ Plug 'majutsushi/tagbar' Plug 'vim-scripts/taglist.vim' Plug 'tpope/vim-fugitive' Plug 'https://gitlab.com/Nate_B/vim-adif' +Plug 'hashivim/vim-terraform' if has("nvim") Plug 'neovim/nvim-lspconfig' @@ -104,14 +105,14 @@ if has("nvim") -- See `:help vim.lsp.*` for documentation on any of the below functions buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts) + buf_set_keymap('n', '<Leader>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts) buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts) - --buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts) + buf_set_keymap('n', 'gK', '<cmd>lua vim.lsp.buf.hover()<CR>', opts) buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts) - --buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts) + buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts) --buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts) --buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts) --buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts) - --buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts) buf_set_keymap('n', '<space>r', '<cmd>lua vim.lsp.buf.rename()<CR>', opts) buf_set_keymap('n', '<space>c', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts) buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts) |