diff options
author | Chris <[email protected]> | 2021-03-16 21:03:48 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-03-16 21:03:48 -0400 |
commit | 570d317285b929d9462f65539d9f8e5f6a470b49 (patch) | |
tree | e6c4358625c45a565ebf5e6a213b4f8f3bfb387d /lua/utils.lua | |
parent | cd05394d91ba11b6d46be44db22cd3a36e7412eb (diff) |
trying to get react commenting to work
Diffstat (limited to 'lua/utils.lua')
-rw-r--r-- | lua/utils.lua | 7 |
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*/}"'}, + }, } ) |