ref(nvim): huge cleanup

This commit is contained in:
Léana 江 2023-10-23 20:34:26 +02:00 committed by Léana 江
parent 8386245841
commit aa105e0200
8 changed files with 119 additions and 244 deletions

View file

@ -1 +0,0 @@
require "hex".setup()

View file

@ -1,3 +1,12 @@
require "ibl".setup {
indent = { char = "", },
indent = {
char = "",
smart_indent_cap = true,
},
scope = {
char = "",
enabled = true,
show_start = false,
show_end = false,
}
}

View file

@ -1,45 +0,0 @@
require "iswap".setup {
-- The keys that will be used as a selection, in order
-- ('asdfghjklqwertyuiopzxcvbnm' by default)
-- keys = "aoeuhtns",
-- Grey out the rest of the text when making a selection
-- (enabled by default)
grey = "disable",
-- Highlight group for the sniping value (asdf etc.)
-- default 'Search'
-- hl_snipe = 'ErrorMsg',
-- Highlight group for the visual selection of terms
-- default 'Visual'
-- hl_selection = 'WarningMsg',
-- Highlight group for the greyed background
-- default 'Comment'
-- hl_grey = 'LineNr',
-- Post-operation flashing highlight style,
-- either 'simultaneous' or 'sequential', or false to disable
-- default 'sequential'
-- flash_style = false,
-- Highlight group for flashing highlight afterward
-- default 'IncSearch'
-- hl_flash = 'ModeMsg',
-- Move cursor to the other element in ISwap*With commands
-- default false
-- move_cursor = true,
-- Automatically swap with only two arguments
-- default nil
autoswap = true,
-- Other default options you probably should not change:
debug = nil,
hl_grey_priority = '1000',
}
vim.keymap.set('n', "<leader>s<Left>", ":ISwapNodeWithLeft<CR>", { desc = "Swap argument with left" })
vim.keymap.set('n', "<leader>s<Right>", ":ISwapNodeWithRight<CR>", { desc = "Swap argument with right" })

View file

@ -1,10 +0,0 @@
require "obsidian".setup {
disable_frontmatter = true,
dir = "~/repos/leana/diary/",
daily_notes = {
date_format = "%s",
},
completion = {
nvim_cmp = true,
},
}

View file

@ -1,66 +0,0 @@
require "symbols-outline".setup({
highlight_hovered_item = true,
show_guides = true,
auto_preview = false,
position = 'left',
relative_width = true,
width = 25,
auto_close = false,
show_numbers = false,
show_relative_numbers = false,
show_symbol_details = true,
preview_bg_highlight = 'Pmenu',
autofold_depth = nil,
auto_unfold_hover = true,
fold_markers = { '', '' },
wrap = false,
keymaps = {
-- These keymaps can be a string or a table for multiple keys
close = { "<Esc>", "q" },
goto_location = "<Cr>",
focus_location = "o",
hover_symbol = "<C-space>",
toggle_preview = "K",
rename_symbol = "<leader>rn",
code_actions = "a",
fold = "h",
unfold = "l",
fold_all = "W",
unfold_all = "E",
fold_reset = "R",
},
lsp_blacklist = {},
symbol_blacklist = {},
-- symbols = {
-- File = { icon = "", hl = "@text.uri" },
-- Module = { icon = "", hl = "@namespace" },
-- Namespace = { icon = "", hl = "@namespace" },
-- Package = { icon = "", hl = "@namespace" },
-- Class = { icon = "𝓒", hl = "@type" },
-- Method = { icon = "ƒ", hl = "@method" },
-- Property = { icon = "", hl = "@method" },
-- Field = { icon = "", hl = "@field" },
-- Constructor = { icon = "", hl = "@constructor" },
-- Enum = { icon = "", hl = "@type" },
-- Interface = { icon = "ﰮ", hl = "@type" },
-- Function = { icon = "", hl = "@function" },
-- Variable = { icon = "", hl = "@constant" },
-- Constant = { icon = "", hl = "@constant" },
-- String = { icon = "𝓐", hl = "@string" },
-- Number = { icon = "#", hl = "@number" },
-- Boolean = { icon = "⊨", hl = "@boolean" },
-- Array = { icon = "", hl = "@constant" },
-- Object = { icon = "⦿", hl = "@type" },
-- Key = { icon = "🔐", hl = "@type" },
-- Null = { icon = "NULL", hl = "@type" },
-- EnumMember = { icon = "", hl = "@field" },
-- Struct = { icon = "𝓢", hl = "@type" },
-- Event = { icon = "🗲", hl = "@type" },
-- Operator = { icon = "+", hl = "@operator" },
-- TypeParameter = { icon = "𝙏", hl = "@parameter" },
-- Component = { icon = "", hl = "@function" },
-- Fragment = { icon = "", hl = "@constant" },
-- },
})
vim.keymap.set('n', '<leader>ol', function() vim.cmd("SymbolsOutline") end, { desc = "Open symbols outline" })

View file

@ -1,31 +1,9 @@
require("nvim-treesitter.configs").setup({
-- A list of parser names, or "all" (the four listed parsers should always be installed)
ensure_installed = {},
-- 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,
additional_vim_regex_highlighting = false,
},
incremental_selection = {
enable = false,
keymaps = {
-- set to `false` to disable one of the mappings
-- init_selection = "false",
-- scope_incremental = "false",
-- node_incremental = "<A-Up>",
-- node_decremental = "<A-Down>",
},
},
refactor = {
smart_rename = {
enable = true,
keymaps = {
smart_rename = "grr",
},
},
},
})