Add config file for fine-cmdline

This commit is contained in:
Tyler Kelley 2024-05-23 23:58:07 -05:00
parent 3d59483a24
commit fa0cfba454
3 changed files with 40 additions and 16 deletions

View File

@ -0,0 +1,33 @@
require('fine-cmdline').setup({
cmdline = {
enable_keymaps = true,
smart_history = true,
prompt = '> '
},
popup = {
position = {
row = '10%',
col = '50%',
},
size = {
width = '60%',
},
border = {
style = 'rounded',
},
win_options = {
winhighlight = 'Normal:Normal,FloatBorder:FloatBorder',
},
},
hooks = {
before_mount = function(input)
-- code
end,
after_mount = function(input)
-- code
end,
set_keymaps = function(imap, feedkeys)
-- code
end
}
})

View File

@ -166,7 +166,6 @@
[
vim
wget
handbrake
killall
git
cmatrix
@ -184,7 +183,6 @@
v4l-utils
ydotool
wl-clipboard
lm_sensors
pciutils
ffmpeg
socat

View File

@ -6,6 +6,10 @@
...
}:
let
finecmdline = pkgs.vimUtils.buildVimPlugin {
name = "fine-cmdline";
src = inputs.fine-cmdline;
};
inherit (import ./variables.nix)
gitUsername
gitEmail
@ -17,19 +21,6 @@ in
home.homeDirectory = "/home/${username}";
home.stateVersion = "23.11";
nixpkgs = {
overlays = [
(final: prev: {
vimPlugins = prev.vimPlugins // {
fine-cmdline-nvim = prev.vimUtils.buildVimPlugin {
name = "fine-cmdline";
src = inputs.fine-cmdline;
};
};
})
];
};
# Import Program Configurations
imports = [
inputs.hyprland.homeManagerModules.default
@ -204,7 +195,8 @@ in
bufferline-nvim
dressing-nvim
indent-blankline-nvim
fine-cmdline-nvim
nui-nvim
finecmdline
nvim-treesitter.withAllGrammars
lualine-nvim
nvim-autopairs
@ -246,6 +238,7 @@ in
${builtins.readFile ../../config/nvim/plugins/telescope.lua}
${builtins.readFile ../../config/nvim/plugins/todo-comments.lua}
${builtins.readFile ../../config/nvim/plugins/treesitter.lua}
${builtins.readFile ../../config/nvim/plugins/fine-cmdline.lua}
require("ibl").setup()
require("bufferline").setup{}
require("lualine").setup({