nvim: add nvim configs

This commit is contained in:
inkch
2024-01-14 23:03:03 +09:00
parent 6339cdb490
commit 4446e72a04
19 changed files with 274 additions and 0 deletions

View File

@ -0,0 +1,6 @@
return {
'norcalli/nvim-colorizer.lua',
config = function()
require('colorizer').setup()
end
}

View File

@ -0,0 +1 @@
return { 'tpope/vim-commentary' }

View File

@ -0,0 +1,6 @@
return {
'tpope/vim-fugitive',
config = function()
vim.keymap.set("n", "<leader>gg", vim.cmd.Git)
end
}

View File

@ -0,0 +1,8 @@
return {
'echasnovski/mini.nvim',
config = function()
require('mini.align').setup()
require('mini.splitjoin').setup()
require('mini.trailspace').setup()
end
}

View File

@ -0,0 +1 @@
return { 'tpope/vim-repeat' }

View File

@ -0,0 +1,2 @@
return { 'tpope/vim-surround' }

View 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
}

View 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
}

View File

@ -0,0 +1,6 @@
return {
'mbbill/undotree',
config = function()
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
end
}

View File

@ -0,0 +1,7 @@
return {
"inkch/vim-yah",
lazy = false,
config = function()
vim.cmd[[colorscheme yah]]
end,
}