Skip to content

Instantly share code, notes, and snippets.

@norpol
Created February 14, 2023 11:36
Show Gist options
  • Save norpol/6489d65f29cf98ed0bbde13416c3e5e9 to your computer and use it in GitHub Desktop.
Save norpol/6489d65f29cf98ed0bbde13416c3e5e9 to your computer and use it in GitHub Desktop.
nvim notes
diff --git a/init.vim b/init.vim
index 52a648f..27e973b 100644
--- a/init.vim
+++ b/init.vim
@@ -22,10 +22,16 @@ let s:core_conf_files = [
\ 'options.vim',
\ 'autocommands.vim',
\ 'mappings.vim',
- \ 'plugins.vim',
- \ 'themes.vim'
+ \ 'plugins.vim'
\ ]
for s:fname in s:core_conf_files
execute printf('source %s/core/%s', stdpath('config'), s:fname)
endfor
+
+
+lua <<EOF
+ require'lspconfig'.terraformls.setup{}
+EOF
+autocmd BufWritePre *.tf lua vim.lsp.buf.formatting_sync()
+
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 2b72926..ea4cead 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -356,6 +356,22 @@ require("packer").startup({
requires = { 'kyazdani42/nvim-web-devicons' },
config = [[require('config.nvim-tree')]]
}
+
+
+ use { 'hashivim/vim-terraform' }
+
+ -- Or with configuration
+ use({
+ 'projekt0n/github-nvim-theme',
+ config = function()
+ require('github-theme').setup({
+ theme_style = "light",
+ dark_float = false,
+ transparent = false
+ })
+ end
+ })
+
end,
config = {
max_jobs = 16,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment