mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
use kickstart-nix
This commit is contained in:
parent
53bfda8bcd
commit
b33413dd18
36 changed files with 1291 additions and 519 deletions
69
nvim/plugin/mini.lua
Normal file
69
nvim/plugin/mini.lua
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
if vim.g.did_load_mini_plugin then
|
||||
return
|
||||
end
|
||||
vim.g.did_load_mini_plugin = true
|
||||
|
||||
-- din( dina
|
||||
require('mini.ai').setup()
|
||||
-- gc gcc
|
||||
require('mini.comment').setup()
|
||||
|
||||
-- Add surrounding with sa
|
||||
-- Delete surrounding with sd.
|
||||
-- Replace surrounding with sr.
|
||||
-- Find surrounding with sf or sF (move cursor right or left).
|
||||
-- Highlight surrounding with sh<char>.
|
||||
-- 'f' - function call (string of alphanumeric symbols or '_' or '.' followed by balanced '()'). In "input" finds function call, in "output" prompts user to enter function name.
|
||||
-- 't' - tag. In "input" finds tag with same identifier, in "output" prompts user to enter tag name.
|
||||
-- All symbols in brackets '()', '[]', '{}', '<>".
|
||||
-- '?' - interactive. Prompts user to enter left and right parts.
|
||||
require('mini.surround').setup()
|
||||
|
||||
-- :Trim
|
||||
require('mini.trailspace').setup()
|
||||
vim.api.nvim_create_user_command('Trim',
|
||||
function()
|
||||
require("mini.trailspace").trim()
|
||||
end, {}
|
||||
)
|
||||
|
||||
-- prefix \
|
||||
-- `b` - |'background'|.
|
||||
-- `c` - |'cursorline'|.
|
||||
-- `C` - |'cursorcolumn'|.
|
||||
-- `d` - diagnostic (via |vim.diagnostic.enable()| and |vim.diagnostic.disable()|).
|
||||
-- `h` - |'hlsearch'| (or |v:hlsearch| to be precise).
|
||||
-- `i` - |'ignorecase'|.
|
||||
-- `l` - |'list'|.
|
||||
-- `n` - |'number'|.
|
||||
-- `r` - |'relativenumber'|.
|
||||
-- `s` - |'spell'|.
|
||||
-- `w` - |'wrap'|.
|
||||
require('mini.basics').setup({
|
||||
mappings = {
|
||||
windows = true
|
||||
}
|
||||
})
|
||||
|
||||
-- gS
|
||||
require('mini.splitjoin').setup({
|
||||
detect = {
|
||||
separator = '[,;\n]'
|
||||
}
|
||||
})
|
||||
|
||||
require('mini.pairs').setup()
|
||||
vim.cmd([[ hi MiniCursorwordCurrent ctermfg=240 ]])
|
||||
|
||||
-- f F t T
|
||||
require('mini.jump').setup()
|
||||
require('mini.jump2d').setup({
|
||||
mappings = { start_jumping = '<leader>s' }
|
||||
})
|
||||
|
||||
indent = require('mini.indentscope')
|
||||
indent.setup({
|
||||
options = { try_as_border = false },
|
||||
draw = { delay = 0 }
|
||||
})
|
||||
indent.gen_animation.none()
|
||||
Loading…
Add table
Add a link
Reference in a new issue