summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/after/plugin/treesitter.lua2
-rw-r--r--.config/nvim/lua/bindings.lua1
-rw-r--r--.config/nvim/lua/pack.lua27
3 files changed, 24 insertions, 6 deletions
diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua
index bbe666f..07027b9 100644
--- a/.config/nvim/after/plugin/treesitter.lua
+++ b/.config/nvim/after/plugin/treesitter.lua
@@ -1,6 +1,6 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
- ensure_installed = { 'c', 'cpp', 'lua', 'vim', 'vimdoc', 'query', 'go', 'rust', 'yaml' },
+ ensure_installed = { 'c', 'cpp', 'lua', 'vim', 'vimdoc', 'query', 'go', 'rust', 'yaml', 'regex', 'markdown', 'markdown_inline' },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
diff --git a/.config/nvim/lua/bindings.lua b/.config/nvim/lua/bindings.lua
index 06022d1..2722301 100644
--- a/.config/nvim/lua/bindings.lua
+++ b/.config/nvim/lua/bindings.lua
@@ -1,4 +1,3 @@
-vim.keymap.set('n', '<M-;>', ':call nerdcommenter#Comment(0,"toggle")<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<M-x>', ':', { noremap = true, silent = false })
vim.keymap.set('n', '<M-k>', ':bprevious<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<C-u>', '<C-u>zz', { noremap = true, silent = true })
diff --git a/.config/nvim/lua/pack.lua b/.config/nvim/lua/pack.lua
index 4e117c6..8bb909e 100644
--- a/.config/nvim/lua/pack.lua
+++ b/.config/nvim/lua/pack.lua
@@ -19,7 +19,13 @@ return require('packer').startup({function(use)
use 'morhetz/gruvbox'
use 'mg979/vim-visual-multi'
use 'preservim/tagbar'
- use 'preservim/nerdcommenter'
+ -- use 'preservim/nerdcommenter'
+ use {
+ 'numToStr/Comment.nvim',
+ config = function()
+ require('Comment').setup()
+ end
+ }
use {
'nvim-tree/nvim-tree.lua',
requires = {'nvim-tree/nvim-web-devicons'}
@@ -28,7 +34,19 @@ return require('packer').startup({function(use)
-- use 'brglng/vim-sidebar-manager'
use 'sainnhe/gruvbox-material'
use 'tpope/vim-fugitive'
- use 'kylechui/nvim-surround'
+ use({
+ "kylechui/nvim-surround",
+ requires = {
+ {'nvim-treesitter/nvim-treesitter'},
+ {'nvim-treesitter/nvim-treesitter-textobjects'},
+ },
+ tag = "*", -- Use for stability; omit to use `main` branch for the latest features
+ config = function()
+ require("nvim-surround").setup({
+ -- Configuration here, or leave empty to use defaults
+ })
+ end
+ })
-- use 'tpope/vim-surround'
use 'nvim-lualine/lualine.nvim'
use 'voldikss/vim-floaterm'
@@ -40,7 +58,8 @@ return require('packer').startup({function(use)
}
use 'HiPhish/rainbow-delimiters.nvim'
use {
- 'nvim-treesitter/nvim-treesitter',
+ 'nvim-treesitter/nvim-treesitter-textobjects',
+ requires = { {'nvim-treesitter/nvim-treesitter'} },
run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
@@ -76,7 +95,7 @@ return require('packer').startup({function(use)
require('trouble').setup {
icons = true,
}
- end
+ end,
})
use 'onsails/lspkind.nvim'
end,