aboutsummaryrefslogtreecommitdiffstats
path: root/dotvimrc
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-11-28 21:35:56 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-11-28 21:35:56 +0100
commita68865ab318826d166582581cfc50b01d7d6a874 (patch)
tree7190446b048620ea2c785adb7d755aba06d2883d /dotvimrc
parente946aaa3812b4406b9db74191330648b8d10f8a1 (diff)
downloadvimrc-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--dotvimrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/dotvimrc b/dotvimrc
index 1c32a3a..9d70c7d 100644
--- a/dotvimrc
+++ b/dotvimrc
@@ -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)