ag, and vim stuff

This commit is contained in:
Tyrel Souza 2023-01-02 18:12:45 -05:00
parent b586214052
commit 8608f855a8
3 changed files with 19 additions and 19 deletions

View File

@ -2,17 +2,16 @@ vim.cmd([[autocmd BufWritePost plugins.lua PackerCompile]])
return function(use)
-- Prevents reinstall of treesitter plugins every boot
local parser_install_dir = vim.fn.stdpath("cache") .. "/treesitters"
vim.fn.mkdir(parser_install_dir, "p")
vim.opt.runtimepath:append(parser_install_dir)
-- local parser_install_dir = vim.fn.stdpath("cache") .. "/treesitters"
-- vim.fn.mkdir(parser_install_dir, "p")
-- vim.opt.runtimepath:append(parser_install_dir)
-- Treesitter is managed by the package config, we just manage configs/deps here
use({ "nvim-treesitter/nvim-treesitter-refactor" })
use({ "RRethy/nvim-treesitter-textsubjects" })
require("nvim-treesitter.configs").setup({
parser_install_dir = parser_install_dir,
})
-- -- Treesitter is managed by the package config, we just manage configs/deps here
-- use({ "nvim-treesitter/nvim-treesitter-refactor" })
-- use({ "RRethy/nvim-treesitter-textsubjects" })
-- require("nvim-treesitter.configs").setup({
-- parser_install_dir = parser_install_dir,
-- })
use({'atelierbram/vim-colors_atelier-schemes'})
use({'robertmeta/nofrils'})

View File

@ -13,6 +13,7 @@
fd
ripgrep
tree-sitter
silver-searcher
wget
];

View File

@ -23,17 +23,17 @@
programs.neovim = {
enable = true;
plugins = with pkgs.vimPlugins; [
# Inject tree-sitters, since they're annoying to maintain with sideloading
(nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars))
];
#plugins = with pkgs.vimPlugins; [
# # Inject tree-sitters, since they're annoying to maintain with sideloading
# (nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars))
#];
# We used to manage our own init.lua but now we want the home-manager
# managed init.vim to load our init.lua which makes this a little dirty.
extraConfig = ''
lua << EOF
${builtins.readFile ../../home/config/nvim/init.lua}
EOF
'';
# extraConfig = ''
# lua << EOF
# ${builtins.readFile ../../home/config/nvim/init.lua}
# EOF
# '';
};
programs.fish = {