fix: Telescope not working and comment for nix

This commit is contained in:
Moritz Böhme 2023-06-23 08:34:00 +02:00
parent b5380bb2bb
commit 6d5351849f
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 6 additions and 7 deletions

View file

@ -202,6 +202,7 @@ with builtins;
{
plugin = telescope-fzf-native-nvim;
conf = readFile ./telescope-fzf-native-nvim.lua;
cmd = [ "Telescope" ];
keys = [
{ key = "<leader>ff"; cmd = "<cmd>Telescope find_files<cr>"; desc = "Find files"; }
{ key = "<leader>fb"; cmd = "<cmd>Telescope buffers<cr>"; desc = "Find buffers"; }
@ -233,5 +234,10 @@ with builtins;
cmd = [ "StartupTime" ];
conf = readFile ./vim-startuptime.lua;
}
{
plugin = comment-nvim;
event = [ "BufReadPost" "BufNewFile" ];
conf = "require('Comment').setup()";
}
];
}

View file

@ -1,11 +1,4 @@
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.move").setup()
require("mini.pairs").setup()