nvim: add nvim configs
This commit is contained in:
6
dot_config/nvim/lua/plugins/colorizer.lua
Normal file
6
dot_config/nvim/lua/plugins/colorizer.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
'norcalli/nvim-colorizer.lua',
|
||||
config = function()
|
||||
require('colorizer').setup()
|
||||
end
|
||||
}
|
1
dot_config/nvim/lua/plugins/commentary.lua
Normal file
1
dot_config/nvim/lua/plugins/commentary.lua
Normal file
@ -0,0 +1 @@
|
||||
return { 'tpope/vim-commentary' }
|
6
dot_config/nvim/lua/plugins/fugitive.lua
Normal file
6
dot_config/nvim/lua/plugins/fugitive.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
'tpope/vim-fugitive',
|
||||
config = function()
|
||||
vim.keymap.set("n", "<leader>gg", vim.cmd.Git)
|
||||
end
|
||||
}
|
8
dot_config/nvim/lua/plugins/mini.lua
Normal file
8
dot_config/nvim/lua/plugins/mini.lua
Normal file
@ -0,0 +1,8 @@
|
||||
return {
|
||||
'echasnovski/mini.nvim',
|
||||
config = function()
|
||||
require('mini.align').setup()
|
||||
require('mini.splitjoin').setup()
|
||||
require('mini.trailspace').setup()
|
||||
end
|
||||
}
|
1
dot_config/nvim/lua/plugins/repeat.lua
Normal file
1
dot_config/nvim/lua/plugins/repeat.lua
Normal file
@ -0,0 +1 @@
|
||||
return { 'tpope/vim-repeat' }
|
2
dot_config/nvim/lua/plugins/surround.lua
Normal file
2
dot_config/nvim/lua/plugins/surround.lua
Normal file
@ -0,0 +1,2 @@
|
||||
return { 'tpope/vim-surround' }
|
||||
|
14
dot_config/nvim/lua/plugins/telescope.lua
Normal file
14
dot_config/nvim/lua/plugins/telescope.lua
Normal file
@ -0,0 +1,14 @@
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.5',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>\'', builtin.marks, {})
|
||||
vim.keymap.set('n', '<leader>.', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>,.', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>,/', builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>,,', builtin.buffers, {})
|
||||
vim.keymap.set('n', '<leader>,;', builtin.command_history, {})
|
||||
vim.keymap.set('n', '<leader>,?', builtin.search_history, {})
|
||||
end
|
||||
}
|
63
dot_config/nvim/lua/plugins/treesitter.lua
Normal file
63
dot_config/nvim/lua/plugins/treesitter.lua
Normal file
@ -0,0 +1,63 @@
|
||||
return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"c",
|
||||
"c_sharp",
|
||||
"cmake",
|
||||
"commonlisp",
|
||||
"cpp",
|
||||
"css",
|
||||
"diff",
|
||||
"dockerfile",
|
||||
"fish",
|
||||
"git_config",
|
||||
"gitcommit",
|
||||
"gitignore",
|
||||
"go",
|
||||
"html",
|
||||
"javascript",
|
||||
"jq",
|
||||
"json",
|
||||
"latex",
|
||||
"lua",
|
||||
"org",
|
||||
"php",
|
||||
"python",
|
||||
"query",
|
||||
"ruby",
|
||||
"rust",
|
||||
"scss",
|
||||
"todotxt",
|
||||
"toml",
|
||||
"typescript",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"vue",
|
||||
"xml",
|
||||
"yaml",
|
||||
},
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
}
|
||||
}
|
||||
end
|
||||
}
|
6
dot_config/nvim/lua/plugins/undotree.lua
Normal file
6
dot_config/nvim/lua/plugins/undotree.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
'mbbill/undotree',
|
||||
config = function()
|
||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||
end
|
||||
}
|
7
dot_config/nvim/lua/plugins/yah.lua
Normal file
7
dot_config/nvim/lua/plugins/yah.lua
Normal file
@ -0,0 +1,7 @@
|
||||
return {
|
||||
"inkch/vim-yah",
|
||||
lazy = false,
|
||||
config = function()
|
||||
vim.cmd[[colorscheme yah]]
|
||||
end,
|
||||
}
|
Reference in New Issue
Block a user