diff options
author | christianchiarulli <[email protected]> | 2021-06-28 13:52:49 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-06-28 13:52:49 -0400 |
commit | 5363aa630682b50cf2e13e213e12da00dc1d2c4d (patch) | |
tree | 4e459f4e0c7faf236a731b9ccee7f796c68a33a2 | |
parent | b6866925e1bdf2b010de2178898ba8edc1b976f6 (diff) |
bug fixes
-rw-r--r-- | init.lua | 1 | ||||
-rw-r--r-- | lua/default-config.lua | 3 | ||||
-rw-r--r-- | lua/lv-treesitter/init.lua | 2 | ||||
-rw-r--r-- | lua/lv-which-key/init.lua | 6 | ||||
-rw-r--r-- | lua/plugins.lua | 14 |
5 files changed, 12 insertions, 14 deletions
@@ -10,6 +10,7 @@ require('lv-galaxyline') require('lv-telescope') require('lv-treesitter') require('lv-autopairs') +require('lv-which-key') -- LSP require('lsp') diff --git a/lua/default-config.lua b/lua/default-config.lua index 7982d0fd..b87128b8 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -34,7 +34,8 @@ O = { colorizer = {active = false}, numb = {active = false}, ts_playground = {active = false}, - indent_line = {active = false} + indent_line = {active = false}, + ts_context_commentstring = {active = false} }, diff --git a/lua/lv-treesitter/init.lua b/lua/lv-treesitter/init.lua index dae2e5e9..99ab185d 100644 --- a/lua/lv-treesitter/init.lua +++ b/lua/lv-treesitter/init.lua @@ -8,7 +8,7 @@ require'nvim-treesitter.configs'.setup { highlight = { enable = O.treesitter.highlight.enabled -- false will disable the whole extension }, - context_commentstring = {enable = true, config = {css = '// %s'}}, + context_commentstring = {enable = O.plugin.ts_context_commentstring, config = {css = '// %s'}}, -- indent = {enable = true, disable = {"python", "html", "javascript"}}, -- TODO seems to be broken indent = {enable = {"javascriptreact"}}, diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua index 1ead82d4..abe115ae 100644 --- a/lua/lv-which-key/init.lua +++ b/lua/lv-which-key/init.lua @@ -1,6 +1,3 @@ -local M = {} - -M.config = function() require("which-key").setup { plugins = { marks = true, -- shows a list of your marks on ' and ` @@ -298,7 +295,4 @@ M.config = function() local wk = require("which-key") wk.register(mappings, opts) -- wk.register(visualMappings, visualOpts) -end - -return M diff --git a/lua/plugins.lua b/lua/plugins.lua index 6f451aab..0a7fba50 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -33,7 +33,7 @@ return require("packer").startup(function(use) end } - use {"hrsh7th/vim-vsnip", event = "InsertCharPre"} + use {"hrsh7th/vim-vsnip", event = "InsertEnter"} use {"rafamadriz/friendly-snippets", event = "InsertEnter"} -- Treesitter @@ -41,7 +41,7 @@ return require("packer").startup(function(use) use { "kyazdani42/nvim-tree.lua", - cmd = "NvimTreeToggle", + -- cmd = "NvimTreeToggle", config = function() require("lv-nvimtree").config() end @@ -59,9 +59,6 @@ return require("packer").startup(function(use) -- whichkey use { "folke/which-key.nvim", - config = function() - require('lv-which-key').config() - end } -- Autopairs @@ -206,10 +203,15 @@ return require("packer").startup(function(use) disable = not O.plugin.indent_line.active } + use { + 'JoosepAlviste/nvim-ts-context-commentstring', + event = "BufRead", + disable = not O.plugin.ts_context_commentstring.active + } + -- use {"nvim-telescope/telescope-fzy-native.nvim", opt = true} -- use {"nvim-telescope/telescope-project.nvim", opt = true} -- -- comments in context - -- use {'JoosepAlviste/nvim-ts-context-commentstring', opt = true} -- -- Git extras -- Git -- use {'tpope/vim-fugitive', opt = true} |