mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 00:45:17 -06:00
tweaks and ftplugins
This commit is contained in:
parent
80efd65a10
commit
6d8480b8b5
11 changed files with 128 additions and 95 deletions
|
|
@ -92,11 +92,14 @@ with lib;
|
|||
|
||||
buildPhase = ''
|
||||
mkdir -p $out/lua
|
||||
mkdir -p $out/ftplugin
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp -r lua $out/lua
|
||||
cp -r lua $out/
|
||||
rm -r lua
|
||||
cp -r ftplugin $out/
|
||||
rm -r ftplugin
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
@ -104,7 +107,7 @@ with lib;
|
|||
# It wraps the user init.lua, prepends the lua lib directory to the RTP
|
||||
# and prepends the nvim and after directory to the RTP
|
||||
initLua = ''
|
||||
vim.opt.rtp:prepend('${nvimRtp}/lua')
|
||||
vim.opt.rtp:prepend('${nvimRtp}')
|
||||
LAZY_OPTS = {
|
||||
performance = {
|
||||
reset_packpath = false,
|
||||
|
|
|
|||
|
|
@ -35,15 +35,14 @@ with final.pkgs.lib; let
|
|||
neogit
|
||||
none-ls-nvim
|
||||
nightfox-nvim
|
||||
nvim-autopairs
|
||||
nvim-cmp
|
||||
nvim-dap
|
||||
nvim-dap-go
|
||||
nvim-dap-ui
|
||||
nvim-early-retirement
|
||||
nvim-lspconfig
|
||||
nvim-neoclip-lua
|
||||
nvim-nio
|
||||
nvim-autopairs
|
||||
nvim-treesitter-context
|
||||
nvim-treesitter-textobjects
|
||||
(nvim-treesitter.withPlugins(p: with p; [
|
||||
|
|
@ -81,11 +80,13 @@ with final.pkgs.lib; let
|
|||
toggleterm-nvim
|
||||
trouble-nvim
|
||||
undotree
|
||||
yanky-nvim
|
||||
workspace-diagnostics-nvim
|
||||
];
|
||||
|
||||
basePackages = with pkgs; [
|
||||
ripgrep
|
||||
fd
|
||||
];
|
||||
extraPackages = with pkgs; [
|
||||
# linters
|
||||
|
|
@ -121,19 +122,4 @@ in {
|
|||
nvim-luarc-json = final.mk-luarc-json {
|
||||
plugins = all-plugins;
|
||||
};
|
||||
|
||||
# You can add as many derivations as you like.
|
||||
# Use `ignoreConfigRegexes` to filter out config
|
||||
# files you would not like to include.
|
||||
#
|
||||
# For example:
|
||||
#
|
||||
# nvim-pkg-no-telescope = mkNeovim {
|
||||
# plugins = [];
|
||||
# ignoreConfigRegexes = [
|
||||
# "^plugin/telescope.lua"
|
||||
# "^ftplugin/.*.lua"
|
||||
# ];
|
||||
# inherit extraPackages;
|
||||
# };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue