feat(nvim): mini.map -> codewindow
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
bc18bbcf82
commit
7f8b1e586c
|
@ -203,6 +203,11 @@ in {
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = fileContents ./plugins/mini.lua;
|
config = fileContents ./plugins/mini.lua;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
plugin = codewindow-nvim;
|
||||||
|
type = "lua";
|
||||||
|
config = fileContents ./plugins/codewindow.lua;
|
||||||
|
}
|
||||||
]
|
]
|
||||||
++ optionals neovimIde [
|
++ optionals neovimIde [
|
||||||
markdown-preview-nvim
|
markdown-preview-nvim
|
||||||
|
@ -264,11 +269,11 @@ in {
|
||||||
src = vimplugin-riscv-src;
|
src = vimplugin-riscv-src;
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
plugin = (pkgs.vimUtils.buildVimPlugin {
|
plugin = pkgs.vimUtils.buildVimPlugin {
|
||||||
name = "easytables-nvim";
|
name = "easytables-nvim";
|
||||||
version = vimplugin-easytables-src.shortRev;
|
version = vimplugin-easytables-src.shortRev;
|
||||||
src = vimplugin-easytables-src;
|
src = vimplugin-easytables-src;
|
||||||
});
|
};
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = ''require("easytables").setup();'';
|
config = ''require("easytables").setup();'';
|
||||||
}
|
}
|
||||||
|
|
6
common/home/neovim/plugins/codewindow.lua
Normal file
6
common/home/neovim/plugins/codewindow.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
require('codewindow').setup({
|
||||||
|
auto_enable = true,
|
||||||
|
minimap_width = 8,
|
||||||
|
relative = 'editor',
|
||||||
|
window_border = 'none',
|
||||||
|
});
|
|
@ -1,17 +1,3 @@
|
||||||
local map = require('mini.map')
|
|
||||||
map.setup({
|
|
||||||
integrations = {
|
|
||||||
map.gen_integration.builtin_search(),
|
|
||||||
map.gen_integration.gitsigns(),
|
|
||||||
map.gen_integration.diagnostic(),
|
|
||||||
},
|
|
||||||
window = {
|
|
||||||
focusable = false,
|
|
||||||
width = 7,
|
|
||||||
winblend = 75,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
local ts_input = require('mini.surround').gen_spec.input.treesitter
|
local ts_input = require('mini.surround').gen_spec.input.treesitter
|
||||||
require('mini.surround').setup({
|
require('mini.surround').setup({
|
||||||
custom_surroundings = {
|
custom_surroundings = {
|
||||||
|
|
|
@ -5,7 +5,6 @@ function! OpenTree() abort
|
||||||
Neotree close
|
Neotree close
|
||||||
Neotree show
|
Neotree show
|
||||||
endif
|
endif
|
||||||
lua MiniMap.open()
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
autocmd VimEnter * call OpenTree()
|
autocmd VimEnter * call OpenTree()
|
||||||
|
|
|
@ -1575,11 +1575,11 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713532771,
|
"lastModified": 1713668495,
|
||||||
"narHash": "sha256-vfKxhYVMzG2tg48/1rewBoSLCrKIjQsG1j7Nm/Y2gf4=",
|
"narHash": "sha256-4BvlfPfyUmB1U0r/oOF6jGEW/pG59c5yv6PJwgucTNM=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "a929a011a09db735abc45a8a45d1ff7fdee62755",
|
"rev": "09f1bc8ba3277c0f052f7887ec92721501541938",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Reference in a new issue