diff options
author | Matthew Lemon <y@yulqen.org> | 2023-05-14 19:39:00 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-05-14 19:39:00 +0100 |
commit | ce8fbf563883bae60bc53a157e25d80b83118fb7 (patch) | |
tree | f35be4d4253b16c5341932afff279f84e369b1d9 | |
parent | 091e9228ef0d4db33f95f0078dbe5848dd672472 (diff) |
Some minor tweaks - enables comments
Diffstat (limited to '')
-rw-r--r-- | nvim/lua/autocommands.lua | 2 | ||||
-rw-r--r-- | nvim/lua/user/comment.lua | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/nvim/lua/autocommands.lua b/nvim/lua/autocommands.lua index ab612b0..96439e1 100644 --- a/nvim/lua/autocommands.lua +++ b/nvim/lua/autocommands.lua @@ -26,7 +26,7 @@ vim.api.nvim_create_autocmd({ "VimResized" }, { vim.api.nvim_create_autocmd({ "TextYankPost" }, { callback = function() - vim.highlight.on_yank { higroup = "Visual", timeout = 200 } + vim.highlight.on_yank { higroup = "Visual", timeout = 300 } end, }) diff --git a/nvim/lua/user/comment.lua b/nvim/lua/user/comment.lua index 27e8fd5..fb7eeb9 100644 --- a/nvim/lua/user/comment.lua +++ b/nvim/lua/user/comment.lua @@ -12,6 +12,7 @@ local M = { } function M.config() + require('Comment').setup() pre_hook = function(ctx) -- Only calculate commentstring for tsx filetypes if vim.bo.filetype == "typescriptreact" then |