summaryrefslogtreecommitdiff
path: root/lua/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/utils.lua')
-rw-r--r--lua/utils.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/utils.lua b/lua/utils.lua
index bbac366e..cdb8991a 100644
--- a/lua/utils.lua
+++ b/lua/utils.lua
@@ -26,8 +26,15 @@ define_augroups(
{'BufWinEnter', '*', 'setlocal formatoptions-=c formatoptions-=r formatoptions-=o'},
{'BufRead', '*', 'setlocal formatoptions-=c formatoptions-=r formatoptions-=o'},
{'BufNewFile', '*', 'setlocal formatoptions-=c formatoptions-=r formatoptions-=o'},
+
{'FileType', 'java', 'luafile ~/.config/nvim/lua/lsp/java-ls.lua'},
{'FileType', 'java', 'nnoremap ca <Cmd>lua require(\'jdtls\').code_action()<CR>'},
+ {'FileType', 'lua', 'lua print("hi")'},
+ --{'BufRead', '*', 'lua vim.api.nvim_buf_set_option(0, "commentstring", "{/*%s*/}")'},
+ --{'BufNewFile', '*', 'lua vim.api.nvim_buf_set_option(0, "commentstring", "{/*%s*/}")'},
+ {'BufNewFile', '*', 'verbose setlocal commentstring="{/*%s*/}"'},
+ {'BufRead', '*', 'verbose setlocal commentstring="{/*%s*/}"'},
+
},
}
)