Compare commits
No commits in common. "cdeb64a7e4a0d437830739d01cc871a0f4dab555" and "29ea7970c354323a23c5d289bd60e59c9be5d61a" have entirely different histories.
cdeb64a7e4
...
29ea7970c3
2 changed files with 120 additions and 184 deletions
|
@ -25,39 +25,18 @@
|
||||||
nodePackages.typescript-language-server
|
nodePackages.typescript-language-server
|
||||||
nodePackages.bash-language-server
|
nodePackages.bash-language-server
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
rustfmt
|
|
||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
stylua
|
stylua
|
||||||
tree-sitter
|
tree-sitter
|
||||||
tree-sitter-grammars.tree-sitter-bash
|
tree-sitter-grammars.tree-sitter-bash
|
||||||
tree-sitter-grammars.tree-sitter-c
|
|
||||||
tree-sitter-grammars.tree-sitter-comment
|
|
||||||
tree-sitter-grammars.tree-sitter-css
|
|
||||||
tree-sitter-grammars.tree-sitter-cue
|
|
||||||
tree-sitter-grammars.tree-sitter-fish
|
|
||||||
tree-sitter-grammars.tree-sitter-gdscript
|
|
||||||
tree-sitter-grammars.tree-sitter-go
|
|
||||||
tree-sitter-grammars.tree-sitter-gomod
|
|
||||||
tree-sitter-grammars.tree-sitter-hcl
|
|
||||||
tree-sitter-grammars.tree-sitter-html
|
|
||||||
tree-sitter-grammars.tree-sitter-javascript
|
|
||||||
tree-sitter-grammars.tree-sitter-json
|
|
||||||
tree-sitter-grammars.tree-sitter-lua
|
|
||||||
tree-sitter-grammars.tree-sitter-markdown
|
|
||||||
tree-sitter-grammars.tree-sitter-nix
|
|
||||||
tree-sitter-grammars.tree-sitter-proto
|
|
||||||
tree-sitter-grammars.tree-sitter-rego
|
|
||||||
tree-sitter-grammars.tree-sitter-rust
|
|
||||||
tree-sitter-grammars.tree-sitter-scss
|
|
||||||
tree-sitter-grammars.tree-sitter-sql
|
|
||||||
tree-sitter-grammars.tree-sitter-svelte
|
|
||||||
tree-sitter-grammars.tree-sitter-toml
|
|
||||||
tree-sitter-grammars.tree-sitter-tsx
|
|
||||||
tree-sitter-grammars.tree-sitter-typescript
|
|
||||||
tree-sitter-grammars.tree-sitter-vim
|
|
||||||
tree-sitter-grammars.tree-sitter-yaml
|
tree-sitter-grammars.tree-sitter-yaml
|
||||||
tree-sitter-grammars.tree-sitter-zig
|
tree-sitter-grammars.tree-sitter-go
|
||||||
|
tree-sitter-grammars.tree-sitter-markdown
|
||||||
|
tree-sitter-grammars.tree-sitter-lua
|
||||||
|
tree-sitter-grammars.tree-sitter-html
|
||||||
|
tree-sitter-grammars.tree-sitter-vim
|
||||||
|
tree-sitter-grammars.tree-sitter-nix
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -66,7 +45,6 @@
|
||||||
go-nvim
|
go-nvim
|
||||||
rustaceanvim
|
rustaceanvim
|
||||||
targets-vim
|
targets-vim
|
||||||
ts-comments-nvim
|
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = pkgs.vimUtils.buildVimPlugin {
|
plugin = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
@ -107,26 +85,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = nvim-treesitter-context;
|
plugin = nvim-treesitter.withAllGrammars; # Treesitter
|
||||||
type = "lua";
|
|
||||||
config = ''
|
|
||||||
vim.keymap.set('n', '<space>ut', "<cmd>TSContextToggle<cr>", {noremap = true, silent = true, desc = "TS Context"})
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
plugin = nvim-treesitter.withAllGrammars;
|
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = ''
|
config = ''
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
highlight = { enable = true, },
|
highlight = { enable = true, },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
textobjects = {
|
|
||||||
select = {
|
|
||||||
enable = true,
|
|
||||||
lookahead = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ end
|
||||||
require('mini.ai').setup()
|
require('mini.ai').setup()
|
||||||
require('mini.align').setup()
|
require('mini.align').setup()
|
||||||
require('mini.bracketed').setup()
|
require('mini.bracketed').setup()
|
||||||
require('mini.comment').setup()
|
|
||||||
require('mini.completion').setup()
|
require('mini.completion').setup()
|
||||||
require('mini.diff').setup()
|
require('mini.diff').setup()
|
||||||
require('mini.extra').setup()
|
require('mini.extra').setup()
|
||||||
|
@ -12,15 +11,15 @@ require('mini.icons').setup()
|
||||||
require('mini.jump').setup()
|
require('mini.jump').setup()
|
||||||
require('mini.surround').setup()
|
require('mini.surround').setup()
|
||||||
require('mini.splitjoin').setup()
|
require('mini.splitjoin').setup()
|
||||||
require('mini.trailspace').setup()
|
|
||||||
|
|
||||||
local bufremove = require('mini.bufremove')
|
require('mini.files').setup()
|
||||||
bufremove.setup()
|
local oil_style = function()
|
||||||
vim.keymap.set('n', '<space>bd', bufremove.delete, opts("Delete"))
|
if not MiniFiles.close() then
|
||||||
|
MiniFiles.open(vim.api.nvim_buf_get_name(0))
|
||||||
require('mini.cursorword').setup({
|
MiniFiles.reveal_cwd()
|
||||||
delay = 800
|
end
|
||||||
})
|
end
|
||||||
|
vim.keymap.set('n', '-', oil_style, opts("File Explorer"));
|
||||||
|
|
||||||
local hipatterns = require('mini.hipatterns')
|
local hipatterns = require('mini.hipatterns')
|
||||||
hipatterns.setup({ -- highlight strings and colors
|
hipatterns.setup({ -- highlight strings and colors
|
||||||
|
@ -36,15 +35,6 @@ hipatterns.setup({ -- highlight strings and colors
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
local indentscope = require('mini.indentscope')
|
|
||||||
indentscope.setup({
|
|
||||||
draw = {
|
|
||||||
delay = 10,
|
|
||||||
animation = indentscope.gen_animation.none(),
|
|
||||||
},
|
|
||||||
symbol = '│',
|
|
||||||
})
|
|
||||||
|
|
||||||
require('mini.jump2d').setup({
|
require('mini.jump2d').setup({
|
||||||
mappings = {
|
mappings = {
|
||||||
start_jumping = 'gw'
|
start_jumping = 'gw'
|
||||||
|
@ -62,23 +52,27 @@ require('mini.pick').setup({
|
||||||
MiniPick.registry.files_root = function(local_opts)
|
MiniPick.registry.files_root = function(local_opts)
|
||||||
local root_patterns = { ".jj", ".git" }
|
local root_patterns = { ".jj", ".git" }
|
||||||
local root_dir = vim.fs.dirname(vim.fs.find(root_patterns, { upward = true })[1])
|
local root_dir = vim.fs.dirname(vim.fs.find(root_patterns, { upward = true })[1])
|
||||||
|
local opts = { source = { cwd = root_dir, tool = "ripgrep"} }
|
||||||
local_opts.cwd = root_dir
|
local_opts.cwd = root_dir
|
||||||
local_opts.tool = "rg"
|
local_opts.tool = "rg"
|
||||||
return MiniPick.builtin.files(local_opts, { source = { cwd = root_dir, tool = "ripgrep" } })
|
return MiniPick.builtin.files(local_opts, opts)
|
||||||
end
|
end
|
||||||
MiniPick.registry.grep_live_root = function(local_opts)
|
MiniPick.registry.grep_live_root = function(local_opts)
|
||||||
local root_patterns = { ".jj", ".git" }
|
local root_patterns = { ".jj", ".git" }
|
||||||
local root_dir = vim.fs.dirname(vim.fs.find(root_patterns, { upward = true })[1])
|
local root_dir = vim.fs.dirname(vim.fs.find(root_patterns, { upward = true })[1])
|
||||||
|
local opts = { source = { cwd = root_dir } }
|
||||||
local_opts.cwd = root_dir
|
local_opts.cwd = root_dir
|
||||||
return MiniPick.builtin.grep_live(local_opts, { source = { cwd = root_dir } })
|
return MiniPick.builtin.grep_live(local_opts, opts)
|
||||||
end
|
end
|
||||||
vim.keymap.set('n', '<space>/', "<cmd>Pick grep_live_root<cr>", opts("Live Grep"))
|
vim.keymap.set('n', '<space>/', "<cmd>Pick grep_live_root<cr>", opts("Live Grep"))
|
||||||
vim.keymap.set('n', '<space>fF', "<cmd>Pick files<cr>", opts("FindCWD"))
|
vim.keymap.set('n', '<space>F', "<cmd>Pick files<cr>", opts("Find Files in CWD"))
|
||||||
vim.keymap.set('n', '<space>ff', "<cmd>Pick files_root<cr>", opts("Find"))
|
vim.keymap.set('n', '<space>ff', "<cmd>Pick files_root<cr>", opts("Find Files"))
|
||||||
vim.keymap.set('n', '<space>fr', "<cmd>Pick oldfiles<cr>", opts("Recent"))
|
vim.keymap.set('n', '<space>fr', "<cmd>Pick oldfiles<cr>", opts("Recent Files"))
|
||||||
vim.keymap.set('n', '<space>bb', "<cmd>Pick buffers<cr>", opts("Switch"))
|
vim.keymap.set('n', '<space>b', "<cmd>Pick buffers<cr>", opts("Buffers"))
|
||||||
vim.keymap.set('n', '<space>d', "<cmd>Pick diagnostics<cr>", opts("Diagnostics"))
|
vim.keymap.set('n', '<space>d', "<cmd>Pick diagnostics<cr>", opts("Diagnostics"))
|
||||||
vim.keymap.set('n', '<tab>', "<cmd>Pick buffers include_current=false<cr>", opts("Buffers"))
|
vim.keymap.set('n', '<tab>', "<cmd>Pick buffers include_current=false<cr>", opts("Buffers"))
|
||||||
|
vim.keymap.set('n', "<space>'", "<cmd>Pick resume<cr>", opts("Last Picker"))
|
||||||
|
vim.keymap.set('n', "<space>g", "<cmd>Pick git_commits<cr>", opts("Git Commits"))
|
||||||
|
|
||||||
|
|
||||||
local miniclue = require('mini.clue')
|
local miniclue = require('mini.clue')
|
||||||
|
@ -132,25 +126,3 @@ miniclue.setup({ -- cute prompts about bindings
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
local notify_win_config = function()
|
|
||||||
local has_statusline = vim.o.laststatus > 0
|
|
||||||
local pad = vim.o.cmdheight + (has_statusline and 1 or 0)
|
|
||||||
return { anchor = 'SE', border = 'rounded', col = vim.o.columns, row = vim.o.lines - pad }
|
|
||||||
end
|
|
||||||
require('mini.notify').setup({
|
|
||||||
window = {
|
|
||||||
config = notify_win_config,
|
|
||||||
winblend = 0,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
require('mini.starter').setup({
|
|
||||||
header =
|
|
||||||
[[ ______ _
|
|
||||||
(_____ \ _ (_)
|
|
||||||
_____) )___| |_ ____ ____ _ ____
|
|
||||||
| ____/ _ | _)/ _ |/ _ | |/ _ |
|
|
||||||
| | ( ( | | |_( ( | ( ( | | ( ( | |
|
|
||||||
|_| \_||_|\___)_||_|\_|| |_|\_||_|
|
|
||||||
(_____|]]
|
|
||||||
})
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue