Updated flake inputs
This commit is contained in:
@@ -15,6 +15,12 @@
|
||||
desc =
|
||||
"Load previous session window settings for the opened file (folds, cursor pos, etc)";
|
||||
}
|
||||
{
|
||||
command = "silent! FloatermNew --name=def_term --width=0.8 --height=0.8 --wintype=topright --silent";
|
||||
event = [ "VimEnter" ];
|
||||
pattern = [ "*" ];
|
||||
desc = "Start the floaterm window";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,24 +6,14 @@
|
||||
key = "!fs";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>UndotreeToggle<CR>"; # select entire document
|
||||
key = "!t";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "gg<S-V>G"; # select entire document
|
||||
key = "<C-a>";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>ChatGPTEditWithInstructions<CR>";
|
||||
key = "!egpt";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>ChatGPTCompleteCode<CR>";
|
||||
key = "!cgpt";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>ChatGPT<CR>";
|
||||
key = "!gpt";
|
||||
key = "!a";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
@@ -31,11 +21,6 @@
|
||||
key = "!ca";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>Telescope<CR>";
|
||||
key = "!t";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.lsp.buf.format()<CR>";
|
||||
key = "!fmt";
|
||||
@@ -57,20 +42,15 @@
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>FloatermToggle shadeterm<CR>";
|
||||
action = "<cmd>FloatermToggle def_term<CR>";
|
||||
key = "<F2>";
|
||||
mode = "n";
|
||||
mode = [ "n" "t" ];
|
||||
}
|
||||
{
|
||||
action = "<cmd>NvimTreeToggle<CR>";
|
||||
key = "<F3>";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>FloatermToggle shadeterm<CR>";
|
||||
key = "<F2>";
|
||||
mode = "t";
|
||||
}
|
||||
{
|
||||
action = "<cmd>COQnow<CR>";
|
||||
key = "!cq";
|
||||
|
||||
@@ -5,6 +5,7 @@ in {
|
||||
programs.nixvim = {
|
||||
colorschemes.base16 = {
|
||||
enable = true;
|
||||
colorscheme = "ayu-dark";
|
||||
#colorscheme = {
|
||||
# base00 = "#${scheme.base00}";
|
||||
# base01 = "#${scheme.base01}";
|
||||
@@ -51,8 +52,10 @@ in {
|
||||
vim.opt.linebreak = true
|
||||
vim.opt.textwidth = 0
|
||||
vim.opt.breakat = " \t!@*-+;:,./?"
|
||||
vim.opt.guifont = "Fira Code:h18"
|
||||
|
||||
vim.g.mapleader = "!"
|
||||
vim.g.rust_recommended_style = 0
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
16
modules/home/programs/nixvim/plugins/airline.nix
Normal file
16
modules/home/programs/nixvim/plugins/airline.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.airline = {
|
||||
enable = true;
|
||||
settings = {
|
||||
left_sep = "";
|
||||
right_sep = "";
|
||||
powerline_fonts = 1;
|
||||
theme = "dark";
|
||||
section_x = "";
|
||||
section_y = "";
|
||||
skip_empty_sections = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -12,12 +12,15 @@
|
||||
./lsp.nix
|
||||
./rustaceanvim.nix
|
||||
./fidget.nix
|
||||
./lualine.nix
|
||||
# ./lualine.nix
|
||||
./airline.nix
|
||||
./nvim-lightbulb.nix
|
||||
./neocord.nix
|
||||
./plugins.nix
|
||||
./nvim-tree.nix
|
||||
./telescope.nix
|
||||
./indent-blankline.nix
|
||||
./gitsigns.nix
|
||||
./extra_plugins.nix
|
||||
];
|
||||
}
|
||||
|
||||
14
modules/home/programs/nixvim/plugins/gitsigns.nix
Normal file
14
modules/home/programs/nixvim/plugins/gitsigns.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.gitsigns = {
|
||||
enable = true;
|
||||
settings.signs = {
|
||||
add.text = "│";
|
||||
change.text = "/";
|
||||
delete.text = "-";
|
||||
topdelete.text = "-";
|
||||
changedelete.text = "\\";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
{ pkgs, ... }: {
|
||||
programs.nixvim = {
|
||||
extraPlugins = [
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "haskell-tools.nvim";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "mrcjkb";
|
||||
repo = "haskell-tools.nvim";
|
||||
rev = "39c4ced6f1bff1abc8d4df5027efd11ac38c6e6c";
|
||||
hash = "sha256-f+M35EwAlHwjJ2Xs2u9FLnyH0FJT22D0LLShDXCbEEs=";
|
||||
};
|
||||
})
|
||||
];
|
||||
plugins = { haskell-scope-highlighting.enable = true; };
|
||||
#extraPlugins = [
|
||||
#(pkgs.vimUtils.buildVimPlugin {
|
||||
#name = "haskell-tools.nvim";
|
||||
#src = pkgs.fetchFromGitHub {
|
||||
#owner = "mrcjkb";
|
||||
#repo = "haskell-tools.nvim";
|
||||
#rev = "39c4ced6f1bff1abc8d4df5027efd11ac38c6e6c";
|
||||
#hash = "sha256-f+M35EwAlHwjJ2Xs2u9FLnyH0FJT22D0LLShDXCbEEs=";
|
||||
#};
|
||||
#})
|
||||
#];
|
||||
#plugins = { haskell-scope-highlighting.enable = true; };
|
||||
};
|
||||
}
|
||||
|
||||
10
modules/home/programs/nixvim/plugins/indent-blankline.nix
Normal file
10
modules/home/programs/nixvim/plugins/indent-blankline.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.indent-blankline = {
|
||||
enable = true;
|
||||
#settings = {
|
||||
#indent.char = "│";
|
||||
#};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.lualine = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
settings = {
|
||||
options = {
|
||||
icons_enabled = true;
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
};
|
||||
nix.enable = true;
|
||||
endwise.enable = true;
|
||||
undotree.enable = true;
|
||||
firenvim.enable = true;
|
||||
helpview.enable = true;
|
||||
floaterm.enable = true;
|
||||
fugitive.enable = true;
|
||||
gitsigns.enable = true;
|
||||
indent-blankline.enable = true;
|
||||
lastplace.enable = true;
|
||||
markdown-preview.enable = true;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
settings.diagnostics_warn_symbol = "■";
|
||||
settings.diagnostics_hint_symbol = "■";
|
||||
settings.diagnostics_info_symbol = "■";
|
||||
settings.character = "│";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,19 +2,17 @@
|
||||
programs.nixvim = {
|
||||
plugins.vim-matchup = {
|
||||
enable = true;
|
||||
enableSurround = true;
|
||||
textObj.enable = true;
|
||||
motion = {
|
||||
enable = true;
|
||||
cursorEnd = true;
|
||||
};
|
||||
matchParen = {
|
||||
hiSurroundAlways = true;
|
||||
offscreen = { method = "popup"; };
|
||||
};
|
||||
treesitterIntegration = {
|
||||
enable = true;
|
||||
includeMatchWords = true;
|
||||
settings = {
|
||||
surround_enabled = 1;
|
||||
text_obj_enabled = 1;
|
||||
motion_enabled = 1;
|
||||
motion_cursor_end = 1;
|
||||
matchparen_deferred_hi_surround_always = true;
|
||||
matchparen_offscreen = { method = "popup"; };
|
||||
treesitter = {
|
||||
enable = true;
|
||||
include_match_words = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user