Created
October 7, 2023 01:08
-
-
Save hellupline/4be7a1ffa714f394e9d941aae5d82e66 to your computer and use it in GitHub Desktop.
minimal vim setup for bugreport
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
if not vim.loop.fs_stat(lazypath) then | |
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath }) | |
end | |
vim.opt.rtp:prepend(lazypath) | |
require("lazy").setup({ | |
{ | |
"nvim-treesitter/nvim-treesitter", | |
cmd = { | |
"TSInstall", | |
"TSBufEnable", | |
"TSBufDisable", | |
"TSModuleInfo", | |
}, | |
build = ":TSUpdate", | |
opts = { | |
ensure_installed = { "python", "yaml", }, | |
highlight = { enable = true, use_languagetree = true, }, | |
indent = { enable = true, disable = {} }, | |
}, | |
config = function(_, opts) | |
require("nvim-treesitter.configs").setup(opts) | |
end, | |
}, | |
{ | |
"lukas-reineke/indent-blankline.nvim", | |
version = "2.20.7", | |
opts = { | |
indentLine_enabled = 1, | |
filetype_exclude = { | |
"help", | |
"terminal", | |
"lazy", | |
"lspinfo", | |
"TelescopePrompt", | |
"TelescopeResults", | |
"mason", | |
"nvdash", | |
"nvcheatsheet", | |
"", | |
}, | |
buftype_exclude = { "terminal" }, | |
show_trailing_blankline_indent = false, | |
-- show_first_indent_level = false, | |
show_current_context = true, | |
show_current_context_start = true, | |
}, | |
config = function(_, opts) | |
require("indent_blankline").setup(opts) | |
end, | |
}, | |
{ | |
"kiyoon/treesitter-indent-object.nvim", | |
keys = { | |
{ | |
"ai", | |
"<Cmd>lua require'treesitter_indent_object.textobj'.select_indent_outer()<CR>", | |
mode = {"x", "o"}, | |
desc = "Select context-aware indent (outer)", | |
}, | |
{ | |
"aI", | |
"<Cmd>lua require'treesitter_indent_object.textobj'.select_indent_outer(true)<CR>", | |
mode = {"x", "o"}, | |
desc = "Select context-aware indent (outer, line-wise)", | |
}, | |
{ | |
"ii", | |
"<Cmd>lua require'treesitter_indent_object.textobj'.select_indent_inner()<CR>", | |
mode = {"x", "o"}, | |
desc = "Select context-aware indent (inner, partial range)", | |
}, | |
{ | |
"iI", | |
"<Cmd>lua require'treesitter_indent_object.textobj'.select_indent_inner(true)<CR>", | |
mode = {"x", "o"}, | |
desc = "Select context-aware indent (inner, entire range)", | |
}, | |
}, | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment