diff options
author | Joe <rbo@gmx.us> | 2024-03-11 13:41:49 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-03-11 13:41:49 +0100 |
commit | 79b63af94126c7f974f6b6b40c9d60446fcafb7f (patch) | |
tree | 908c3d26b74e415d0af2a87ae6bb96dc0b93dbc3 | |
parent | up (diff) | |
download | dotfiles-bsd-79b63af94126c7f974f6b6b40c9d60446fcafb7f.tar.gz dotfiles-bsd-79b63af94126c7f974f6b6b40c9d60446fcafb7f.tar.bz2 dotfiles-bsd-79b63af94126c7f974f6b6b40c9d60446fcafb7f.tar.xz dotfiles-bsd-79b63af94126c7f974f6b6b40c9d60446fcafb7f.tar.zst dotfiles-bsd-79b63af94126c7f974f6b6b40c9d60446fcafb7f.zip |
up
-rw-r--r-- | .config/nvim/after/plugin/lsp.lua | 7 | ||||
-rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 1 | ||||
-rwxr-xr-x | .local/bin/kb | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 3435508..d562e6f 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -59,6 +59,13 @@ require('lspconfig').gopls.setup({ }, }) +require'lspconfig'.terraformls.setup{} +vim.api.nvim_create_autocmd({"BufWritePre"}, { + pattern = {"*.tf", "*.tfvars"}, + callback = function() + vim.lsp.buf.format() + end, +}) -- cmp diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua index 4e27946..0bc651b 100644 --- a/.config/nvim/after/plugin/treesitter.lua +++ b/.config/nvim/after/plugin/treesitter.lua @@ -13,6 +13,7 @@ require'nvim-treesitter.configs'.setup { 'regex', 'markdown', 'markdown_inline', + 'terraform', 'comment', }, diff --git a/.local/bin/kb b/.local/bin/kb index b77fd89..29ba370 100755 --- a/.local/bin/kb +++ b/.local/bin/kb @@ -47,7 +47,7 @@ xset r rate 200 150 setxkbmap -option setxkbmap -layout us -variant intl -if [ "$(hostname -s)" = "po-rbo" ]; then +if [ "$(hostname -s)" = "mother" ]; then setxkbmap -option ctrl:swapcaps setxkbmap -option caps:none xmodmap -e 'keycode 9 = Tab' |