Compare commits
No commits in common. "4a5dbf9f621e1bde5cdfca719f2de0d4a07b34f2" and "d256af35364c145b9196a1b0db302bf1e2004456" have entirely different histories.
4a5dbf9f62
...
d256af3536
2 changed files with 10 additions and 22 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
with builtins;
|
with builtins;
|
||||||
{
|
{
|
||||||
|
@ -115,22 +115,9 @@ with builtins;
|
||||||
lazy = false;
|
lazy = false;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = nvim-treesitter;
|
plugin = nvim-treesitter.withAllGrammars;
|
||||||
event = [ "BufReadPost" "BufNewFile" ];
|
event = [ "BufReadPost" "BufNewFile" ];
|
||||||
conf =
|
conf = readFile ./nvim-treesitter.lua;
|
||||||
let
|
|
||||||
parserDir = pkgs.symlinkJoin {
|
|
||||||
name = "tresitter-grammars-all";
|
|
||||||
paths = lib.attrValues (lib.filterAttrs (_: builtins.isAttrs) nvim-treesitter-parsers);
|
|
||||||
};
|
|
||||||
in
|
|
||||||
readFile ./nvim-treesitter.lua + ''
|
|
||||||
vim.opt.runtimepath:append("${parserDir}")
|
|
||||||
|
|
||||||
require'nvim-treesitter.configs'.setup {
|
|
||||||
parser_install_dir = "${parserDir}",
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ plugin = nvim-ts-context-commentstring; }
|
{ plugin = nvim-ts-context-commentstring; }
|
||||||
{
|
{
|
||||||
|
@ -202,7 +189,6 @@ with builtins;
|
||||||
{
|
{
|
||||||
plugin = telescope-fzf-native-nvim;
|
plugin = telescope-fzf-native-nvim;
|
||||||
conf = readFile ./telescope-fzf-native-nvim.lua;
|
conf = readFile ./telescope-fzf-native-nvim.lua;
|
||||||
cmd = [ "Telescope" ];
|
|
||||||
keys = [
|
keys = [
|
||||||
{ key = "<leader>ff"; cmd = "<cmd>Telescope find_files<cr>"; desc = "Find files"; }
|
{ key = "<leader>ff"; cmd = "<cmd>Telescope find_files<cr>"; desc = "Find files"; }
|
||||||
{ key = "<leader>fb"; cmd = "<cmd>Telescope buffers<cr>"; desc = "Find buffers"; }
|
{ key = "<leader>fb"; cmd = "<cmd>Telescope buffers<cr>"; desc = "Find buffers"; }
|
||||||
|
@ -234,10 +220,5 @@ with builtins;
|
||||||
cmd = [ "StartupTime" ];
|
cmd = [ "StartupTime" ];
|
||||||
conf = readFile ./vim-startuptime.lua;
|
conf = readFile ./vim-startuptime.lua;
|
||||||
}
|
}
|
||||||
{
|
|
||||||
plugin = comment-nvim;
|
|
||||||
event = [ "BufReadPost" "BufNewFile" ];
|
|
||||||
conf = "require('Comment').setup()";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
require("mini.align").setup()
|
require("mini.align").setup()
|
||||||
|
require("mini.comment").setup({
|
||||||
|
options = {
|
||||||
|
custom_commentstring = function()
|
||||||
|
return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
})
|
||||||
require("mini.surround").setup()
|
require("mini.surround").setup()
|
||||||
require("mini.move").setup()
|
require("mini.move").setup()
|
||||||
require("mini.pairs").setup()
|
require("mini.pairs").setup()
|
||||||
|
|
Loading…
Reference in a new issue