1
0
Fork 0

nvim: Plugin changes

This commit is contained in:
Daniel Kempkens 2023-11-29 15:52:16 +01:00
parent 346ac60801
commit 4ee876d8ef
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
8 changed files with 109 additions and 77 deletions

View file

@ -13,11 +13,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696775529, "lastModified": 1701216516,
"narHash": "sha256-TYlE4B0ktPtlJJF9IFxTWrEeq+XKG8Ny0gc2FGEAdj0=", "narHash": "sha256-jKSeJn+7hZ1dZdiH1L+NWUGT2i/BGomKAJ54B9kT06Q=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "daf42cb35b2dc614d1551e37f96406e4c4a2d3e4", "rev": "13ac9ac6d68b9a0896e3d43a082947233189e247",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -287,11 +287,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1701150737, "lastModified": 1701213733,
"narHash": "sha256-yM9nRmr07ByKuwMieqxDccdcHz5ZK7E2EYB8oeMz1NM=", "narHash": "sha256-sTUFA4n+A3vU1eOoO/6jgSUjg/xWilUw5Ju1ZdqZsxY=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "570367ac83cdceeee7d43dadcff7652bd5cc93c5", "rev": "8868ecd401f6a45d005fe68c57fbba79d32af192",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -312,11 +312,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1701158360, "lastModified": 1701256439,
"narHash": "sha256-FW2ItGTvpVD+2kbZa7ABU9GL/BC85t4tIMBOCSXRNB8=", "narHash": "sha256-hvTFIaFOXwgyHvlRcSnqxj7C4fnrTc43oCHNdhW29kE=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "9da473e5b5ebd96bb9c5e0b7ce9c4db10108ab25", "rev": "8d3075fa95b6b67317619569c625ccaea2c2e2f7",
"revCount": 600, "revCount": 602,
"type": "git", "type": "git",
"url": "https://git.kempkens.io/daniel/nix-overlay" "url": "https://git.kempkens.io/daniel/nix-overlay"
}, },
@ -347,11 +347,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1701020860, "lastModified": 1701250978,
"narHash": "sha256-NwnRn04C8s+hH+KdVtGmVB1FFNIG7DtPJmQSCBDaET4=", "narHash": "sha256-ohu3cz4edjpGxs2qUTgbs0WrnewOX4crnUJNEB6Jox4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "b006ec52fce23b1d57f6ab4a42d7400732e9a0a2", "rev": "8772491ed75f150f02552c60694e1beff9f46013",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -363,11 +363,11 @@
}, },
"nixos-unstable": { "nixos-unstable": {
"locked": { "locked": {
"lastModified": 1701127912, "lastModified": 1701239926,
"narHash": "sha256-x/UtyZX/ep6YVENzwcLn+71rwhl70vnUZTuZq7/XFYg=", "narHash": "sha256-k5R3QQJMGU11nhTPctbpqWenAkRnqngH5VnGMQCtHyg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c76b72caa421e31d998e4a05387ebd3b40454327", "rev": "e2fa3d60550627938495aa368a1d4635c9cf64ff",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -379,11 +379,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1701040486, "lastModified": 1701174899,
"narHash": "sha256-vawYwoHA5CwvjfqaT3A5CT9V36Eq43gxdwpux32Qkjw=", "narHash": "sha256-1W+FMe8mWsJKXoBc+QgKmEeRj33kTFnPq7XCjU+bfnA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "45827faa2132b8eade424f6bdd48d8828754341a", "rev": "010c7296f3b19a58b206fdf7d68d75a5b0a09e9e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -8,6 +8,7 @@
telescope-dropdown (telescope-themes.get_dropdown) telescope-dropdown (telescope-themes.get_dropdown)
npairs (require :nvim-autopairs) npairs (require :nvim-autopairs)
gitsigns (require :gitsigns) gitsigns (require :gitsigns)
wk (require :which-key)
repl (require :nifoc.repl) repl (require :nifoc.repl)
formatting (require :nifoc.formatting)] formatting (require :nifoc.formatting)]
(fn mod.setup [] (fn mod.setup []
@ -61,6 +62,11 @@
(keymap.set :i :<A-Right> :<C-o>w) (keymap.set :i :<A-Right> :<C-o>w)
(keymap.set :i :<S-Left> :<C-o>^) (keymap.set :i :<S-Left> :<C-o>^)
(keymap.set :i :<S-Right> :<C-o>$) (keymap.set :i :<S-Right> :<C-o>$)
(keymap.set :n :<A-Up> "<cmd>MoveLine -1<CR>" {:noremap true :silent true})
(keymap.set :n :<A-Down> "<cmd>MoveLine 1<CR>" {:noremap true :silent true})
(keymap.set :x :<A-Up> "<cmd>MoveBlock -1<CR>" {:noremap true :silent true})
(keymap.set :x :<A-Down> "<cmd>MoveBlock 1<CR>"
{:noremap true :silent true})
(keymap.set :n :p "<Plug>(YankyPutAfter)") (keymap.set :n :p "<Plug>(YankyPutAfter)")
(keymap.set :n :P "<Plug>(YankyPutBefore)") (keymap.set :n :P "<Plug>(YankyPutBefore)")
(keymap.set :x :p substitute.visual) (keymap.set :x :p substitute.visual)
@ -71,7 +77,11 @@
(keymap.set :x :gP "<Plug>(YankyGPutBefore)") (keymap.set :x :gP "<Plug>(YankyGPutBefore)")
(keymap.set :n :y "<Plug>(YankyYank)") (keymap.set :n :y "<Plug>(YankyYank)")
(keymap.set :x :y "<Plug>(YankyYank)") (keymap.set :x :y "<Plug>(YankyYank)")
(keymap.set :n "-" :<cmd>Oil<CR> {:desc "Open Oil"})) (keymap.set :n "-" :<cmd>Oil<CR> {:desc "Open Oil"})
;; Label
(wk.register {:<leader>v {:name :+vcs}
:<leader>l {:name :+list/lsp}
:<leader>d {:name :+debug}}))
(fn mod.lsp-attach [_client bufnr] (fn mod.lsp-attach [_client bufnr]
(keymap.set :n :<leader>t (keymap.set :n :<leader>t

View file

@ -1,27 +0,0 @@
(let [miniclue (require :mini.clue)
hipatterns (require :mini.hipatterns)]
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-ai.md
((. (require :mini.ai) :setup) {})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-clue.md
(miniclue.setup {:triggers [; Leader
{:mode :n :keys :<leader>}
{:mode :x :keys :<leader>}]
:clues [(miniclue.gen_clues.builtin_completion)]})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-hipatterns.md
(hipatterns.setup {:highlighters {:fixme {:pattern "%f[%w]()FIXME()%f[%W]"
:group :MiniHipatternsFixme}
:hack {:pattern "%f[%w]()HACK()%f[%W]"
:group :MiniHipatternsHack}
:todo {:pattern "%f[%w]()TODO()%f[%W]"
:group :MiniHipatternsTodo}
:note {:pattern "%f[%w]()NOTE()%f[%W]"
:group :MiniHipatternsNote}
:hex_color (hipatterns.gen_highlighter.hex_color)}})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-jump2d.md
((. (require :mini.jump2d) :setup) {:hooks {:before_start (fn []
(vim.cmd :nohlsearch))}})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-move.md
((. (require :mini.move) :setup) {:mappings {:down :<A-Down>
:up :<A-Up>
:line_down :<A-Down>
:line_up :<A-Up>}}))

View file

@ -0,0 +1,2 @@
(let [todo-comments (require :todo-comments)]
(todo-comments.setup {:signs false}))

View file

@ -0,0 +1 @@
(let [wk (require :which-key)] (wk.setup {}))

View file

@ -110,12 +110,6 @@ in
popup-nvim popup-nvim
plenary-nvim plenary-nvim
{
plugin = mini-nvim;
config = builtins.readFile ../../config/nvim/plugins/mini.fnl;
type = "fennel";
}
nvim-web-devicons nvim-web-devicons
{ {
@ -124,6 +118,8 @@ in
type = "fennel"; type = "fennel";
} }
vim-cool
# Keybindings # Keybindings
{ {
plugin = yanky-nvim; plugin = yanky-nvim;
@ -143,6 +139,8 @@ in
type = "fennel"; type = "fennel";
} }
move-nvim
# Themes # Themes
dracula-nvim dracula-nvim
@ -161,6 +159,12 @@ in
type = "fennel"; type = "fennel";
} }
{
plugin = todo-comments-nvim;
config = builtins.readFile ../../config/nvim/plugins/todo-comments.fnl;
type = "fennel";
}
playground playground
# Telescope # Telescope
@ -318,6 +322,12 @@ in
config = builtins.readFile ../../config/nvim/plugins/fidget.fnl; config = builtins.readFile ../../config/nvim/plugins/fidget.fnl;
type = "fennel"; type = "fennel";
} }
{
plugin = which-key-nvim;
config = builtins.readFile ../../config/nvim/plugins/which-key.fnl;
type = "fennel";
}
] ++ optionals isDarwin [ ] ++ optionals isDarwin [
{ {
plugin = pkgs.vimPlugins.cmp-tabnine; plugin = pkgs.vimPlugins.cmp-tabnine;

View file

@ -27,17 +27,6 @@ in
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
mini-nvim = buildVimPlugin {
pname = "mini.nvim";
version = "2023-11-28";
src = fetchFromGitHub {
owner = "echasnovski";
repo = "mini.nvim";
rev = "964fab7fecd14f66a69a96162f8aa816480690fd";
sha256 = "1vxbjidpxhjbrbhg5kl4x4dcsn77nfybzbnlq4yjcpcsrmf8ms5i";
fetchSubmodules = false;
};
};
nvim-web-devicons = buildVimPlugin { nvim-web-devicons = buildVimPlugin {
pname = "nvim-web-devicons"; pname = "nvim-web-devicons";
version = "2023-11-27"; version = "2023-11-27";
@ -60,6 +49,17 @@ in
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
vim-cool = buildVimPlugin {
pname = "vim-cool";
version = "2023-09-06";
src = fetchFromGitHub {
owner = "romainl";
repo = "vim-cool";
rev = "662e7b11064cbeedad17c45d2fe926e78d3cd0b6";
sha256 = "1ilddllx5riyzw4dx05rnvcxgngg7y2iydnkjn01wlddmid65p9k";
fetchSubmodules = false;
};
};
yanky-nvim = buildVimPlugin { yanky-nvim = buildVimPlugin {
pname = "yanky.nvim"; pname = "yanky.nvim";
version = "2023-11-27"; version = "2023-11-27";
@ -93,6 +93,17 @@ in
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
move-nvim = buildVimPlugin {
pname = "move.nvim";
version = "2023-10-25";
src = fetchFromGitHub {
owner = "hinell";
repo = "move.nvim";
rev = "30047fbb4ee0f3b79bf969d37d889085e96b44e6";
sha256 = "1z0k361n41md768jxk9sngx06lv93hcnss64k7h5clg5khxf6pzg";
fetchSubmodules = false;
};
};
dracula-nvim = buildVimPlugin { dracula-nvim = buildVimPlugin {
pname = "dracula.nvim"; pname = "dracula.nvim";
version = "2023-10-26"; version = "2023-10-26";
@ -106,12 +117,12 @@ in
}; };
nvim-treesitter = buildVimPlugin { nvim-treesitter = buildVimPlugin {
pname = "nvim-treesitter"; pname = "nvim-treesitter";
version = "2023-11-28"; version = "2023-11-29";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nvim-treesitter"; owner = "nvim-treesitter";
repo = "nvim-treesitter"; repo = "nvim-treesitter";
rev = "582a92ee120532a603b75239f40cba06b9a5ec07"; rev = "8f16c39f5b439bd9540336c4d5da705d180e34b9";
sha256 = "0xwdakmd6cjks284a399civhbj195mmlk28yzzv0bxjxa9y9q6af"; sha256 = "06qka2mzxqk379dk5dlgrmx1g898xyp1fdbwn4gii81ag4mpmigj";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -137,6 +148,17 @@ in
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
todo-comments-nvim = buildVimPlugin {
pname = "todo-comments.nvim";
version = "2023-10-25";
src = fetchFromGitHub {
owner = "folke";
repo = "todo-comments.nvim";
rev = "4a6737a8d70fe1ac55c64dfa47fcb189ca431872";
sha256 = "1wf19rahk713qv834gpaw18w8a4ydl44m6jz6l933ns89q1kakk7";
fetchSubmodules = false;
};
};
playground = buildVimPlugin { playground = buildVimPlugin {
pname = "playground"; pname = "playground";
version = "2023-09-15"; version = "2023-09-15";
@ -219,12 +241,12 @@ in
}; };
nvim-jdtls = buildVimPlugin { nvim-jdtls = buildVimPlugin {
pname = "nvim-jdtls"; pname = "nvim-jdtls";
version = "2023-11-21"; version = "2023-11-28";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mfussenegger"; owner = "mfussenegger";
repo = "nvim-jdtls"; repo = "nvim-jdtls";
rev = "44403b2ef6c6285cfd9a3b4fa9a0d746ddae4b45"; rev = "66b5ace68a5d1c45fdfb1afa8d847e87af2aa1f8";
sha256 = "0d6icxcy9rx7dcdx821apwz1mrdl3vr3s547y9xw1m7idljij1cv"; sha256 = "1cycasjvms1m58vcb3sk01dp4dzjjchds20yq0c6vq1s98wir0y6";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -494,23 +516,34 @@ in
}; };
gitsigns-nvim = buildVimPlugin { gitsigns-nvim = buildVimPlugin {
pname = "gitsigns.nvim"; pname = "gitsigns.nvim";
version = "2023-11-28"; version = "2023-11-29";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lewis6991"; owner = "lewis6991";
repo = "gitsigns.nvim"; repo = "gitsigns.nvim";
rev = "175e74f87d3d2e4d20952d390af5f2a794f5ed7e"; rev = "6ef8c54fb526bf3a0bc4efb0b2fe8e6d9a7daed2";
sha256 = "1s131xr3vvfr5a19nvf1f7330bjzn6yj615q7yi0z7wr1s6kndp4"; sha256 = "086jmhzgpavwjvp7ssd8ga0wxgnz480zzjiv84h4ivva2nv3lnvi";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
fidget-nvim = buildVimPlugin { fidget-nvim = buildVimPlugin {
pname = "fidget.nvim"; pname = "fidget.nvim";
version = "2023-11-27"; version = "2023-11-28";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "j-hui"; owner = "j-hui";
repo = "fidget.nvim"; repo = "fidget.nvim";
rev = "5eb5bf68bcdcd45940ad3d7155c0630476ee63cc"; rev = "785efc604f6ffe3c3fdd2ea86262804d48863ee1";
sha256 = "0x3pgghbhysc7ix543zi3w0w3gfjl9z11skx56vjy6gkw1vkd08z"; sha256 = "01c0pcfvr2acpc70ljmr2dcmg6mvfyvsr9inxgwxv347pdi8phll";
fetchSubmodules = false;
};
};
which-key-nvim = buildVimPlugin {
pname = "which-key.nvim";
version = "2023-10-20";
src = fetchFromGitHub {
owner = "folke";
repo = "which-key.nvim";
rev = "4433e5ec9a507e5097571ed55c02ea9658fb268a";
sha256 = "1inm7szfhji6l9k4khq9fvddbwj348gilgbd6b8nlygd7wz23y5s";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };

View file

@ -1,19 +1,21 @@
# Utils # Utils
- src: nvim-lua/popup.nvim - src: nvim-lua/popup.nvim
- src: nvim-lua/plenary.nvim - src: nvim-lua/plenary.nvim
- src: echasnovski/mini.nvim
- src: kyazdani42/nvim-web-devicons - src: kyazdani42/nvim-web-devicons
- src: willothy/wezterm.nvim - src: willothy/wezterm.nvim
- src: romainl/vim-cool
# Keybindings # Keybindings
- src: gbprod/yanky.nvim - src: gbprod/yanky.nvim
- src: gbprod/cutlass.nvim - src: gbprod/cutlass.nvim
- src: gbprod/substitute.nvim - src: gbprod/substitute.nvim
- src: hinell/move.nvim
# Themes # Themes
- src: Mofiqul/dracula.nvim - src: Mofiqul/dracula.nvim
# Syntax # Syntax
- src: nvim-treesitter/nvim-treesitter - src: nvim-treesitter/nvim-treesitter
- src: NoahTheDuke/vim-just - src: NoahTheDuke/vim-just
- src: HiPhish/rainbow-delimiters.nvim - src: HiPhish/rainbow-delimiters.nvim
- src: folke/todo-comments.nvim
- src: nvim-treesitter/playground - src: nvim-treesitter/playground
# Telescope # Telescope
- src: nvim-telescope/telescope.nvim - src: nvim-telescope/telescope.nvim
@ -60,3 +62,4 @@
- src: axieax/urlview.nvim - src: axieax/urlview.nvim
- src: lewis6991/gitsigns.nvim - src: lewis6991/gitsigns.nvim
- src: j-hui/fidget.nvim - src: j-hui/fidget.nvim
- src: folke/which-key.nvim