Compare commits
No commits in common. "a13aaa59cb9aeae7dd64fa84d1066c5da0c8c59a" and "18158940152d49b9e035783c519524531c4787ee" have entirely different histories.
a13aaa59cb
...
1815894015
17
flake.lock
17
flake.lock
|
@ -775,7 +775,6 @@
|
||||||
"nixpkgs": "nixpkgs_8",
|
"nixpkgs": "nixpkgs_8",
|
||||||
"nvim-treesitter-textsubjects": "nvim-treesitter-textsubjects",
|
"nvim-treesitter-textsubjects": "nvim-treesitter-textsubjects",
|
||||||
"pre-commit-hooks": "pre-commit-hooks_3",
|
"pre-commit-hooks": "pre-commit-hooks_3",
|
||||||
"smartcolumn-nvim": "smartcolumn-nvim",
|
|
||||||
"stable": "stable",
|
"stable": "stable",
|
||||||
"utils": "utils_2"
|
"utils": "utils_2"
|
||||||
}
|
}
|
||||||
|
@ -805,22 +804,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"smartcolumn-nvim": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1677125264,
|
|
||||||
"narHash": "sha256-Om0t759e6JYwcg6V+HdJk59h2yVt9kPLwGBMKNnP8AA=",
|
|
||||||
"owner": "m4xshen",
|
|
||||||
"repo": "smartcolumn.nvim",
|
|
||||||
"rev": "1202b0741b87b0815bdc6fc6ebacb2df9e6628ee",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "m4xshen",
|
|
||||||
"repo": "smartcolumn.nvim",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stable": {
|
"stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1676817468,
|
"lastModified": 1676817468,
|
||||||
|
|
|
@ -61,12 +61,6 @@
|
||||||
url = "github:RRethy/nvim-treesitter-textsubjects";
|
url = "github:RRethy/nvim-treesitter-textsubjects";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
smartcolumn-nvim = {
|
|
||||||
url = "github:m4xshen/smartcolumn.nvim";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|
|
@ -146,32 +146,26 @@ in
|
||||||
$windowMod = ALT
|
$windowMod = ALT
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
|
bind = $mainMod, D, exec, hyprctl keyword general:layout dwindle
|
||||||
# Window binds
|
bind = $mainMod, E, exec, emacsclient -c -a emacs
|
||||||
bind = $mainMod , F , togglefloating ,
|
bind = $mainMod, F, togglefloating,
|
||||||
bind = $mainMod , P , pseudo ,
|
bind = $mainMod SHIFT, F, fullscreen,
|
||||||
bind = $mainMod , Q , killactive ,
|
bind = $mainMod, M, exec, hyprctl keyword general:layout master
|
||||||
bind = $mainMod , T , togglesplit ,
|
bind = $mainMod, P, pseudo, # dwindle
|
||||||
bind = $mainMod SHIFT , F , fullscreen ,
|
bind = $mainMod, Q, killactive,
|
||||||
|
bind = $mainMod, R, exec, rofi -show combi
|
||||||
# Program binds
|
bind = $mainMod, C, exec, rofi -show calc -modi calc -no-show-match -no-sort | wl-copy
|
||||||
bind = $mainMod , B , exec , rofi-bluetooth
|
bind = $mainMod, B, exec, rofi-bluetooth
|
||||||
bind = $mainMod , C , exec , rofi -show calc -modi calc -no-show-match -no-sort | wl-copy
|
bind = $mainMod, RETURN, exec, kitty
|
||||||
bind = $mainMod , D , exec , hyprctl keyword general:layout dwindle
|
bind = $mainMod, T, togglesplit, # dwindle
|
||||||
bind = $mainMod , E , exec , emacsclient -c -a emacs
|
bind = , XF86AudioLowerVolume, exec, pamixer -d 5
|
||||||
bind = $mainMod , M , exec , hyprctl keyword general:layout master
|
bind = , XF86AudioMute, exec, pamixer -t
|
||||||
bind = $mainMod , R , exec , rofi -show combi
|
bind = , XF86AudioNext, exec, playerctl -p "spotifyd,firefox" next
|
||||||
bind = $mainMod , RETURN , exec , kitty
|
bind = , XF86AudioPlay, exec, playerctl -p "spotifyd,firefox" play-pause
|
||||||
|
bind = , XF86AudioPrev, exec, playerctl -p "spotifyd,firefox" previous
|
||||||
# XF86 keys
|
bind = , XF86AudioRaiseVolume, exec, pamixer -i 5
|
||||||
bind = , XF86AudioLowerVolume , exec , pamixer -d 5
|
bind = , XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
||||||
bind = , XF86AudioRaiseVolume , exec , pamixer -i 5
|
bind = , XF86MonBrightnessUp, exec, brightnessctl s 10%+
|
||||||
bind = , XF86AudioMute , exec , pamixer -t
|
|
||||||
bind = , XF86AudioNext , exec , playerctl -p "spotifyd,firefox" next
|
|
||||||
bind = , XF86AudioPlay , exec , playerctl -p "spotifyd,firefox" play-pause
|
|
||||||
bind = , XF86AudioPrev , exec , playerctl -p "spotifyd,firefox" previous
|
|
||||||
bind = , XF86MonBrightnessDown , exec , brightnessctl s 10%-
|
|
||||||
bind = , XF86MonBrightnessUp , exec , brightnessctl s 10%+
|
|
||||||
|
|
||||||
# Move focus with mainMod + hjkl
|
# Move focus with mainMod + hjkl
|
||||||
bind = $mainMod, H, movefocus, l
|
bind = $mainMod, H, movefocus, l
|
||||||
|
@ -179,17 +173,11 @@ in
|
||||||
bind = $mainMod, K, movefocus, u
|
bind = $mainMod, K, movefocus, u
|
||||||
bind = $mainMod, J, movefocus, d
|
bind = $mainMod, J, movefocus, d
|
||||||
|
|
||||||
# Change current active window size with mainMod + SHIFT + hjkl
|
# Change current active window size with mainMod + hjkl
|
||||||
bind = $mainMod SHIFT, H, resizeactive, -10 0
|
bind = $mainMod SHIFT, H, resizeactive, -10 0
|
||||||
bind = $mainMod SHIFT, J, resizeactive, 0 10
|
|
||||||
bind = $mainMod SHIFT, K, resizeactive, 0 -10
|
|
||||||
bind = $mainMod SHIFT, L, resizeactive, 10 0
|
bind = $mainMod SHIFT, L, resizeactive, 10 0
|
||||||
|
bind = $mainMod SHIFT, K, resizeactive, 0 -10
|
||||||
# Move current active window with mainMod + ALT + hjkl
|
bind = $mainMod SHIFT, J, resizeactive, 0 10
|
||||||
bind = $mainMod ALT, H, movewindow, l
|
|
||||||
bind = $mainMod ALT, J, movewindow, d
|
|
||||||
bind = $mainMod ALT, K, movewindow, u
|
|
||||||
bind = $mainMod ALT, L, movewindow, r
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
# Switch workspaces with mainMod + [0-9]
|
||||||
bind = $mainMod, 1, workspace, 1
|
bind = $mainMod, 1, workspace, 1
|
||||||
|
|
|
@ -22,12 +22,6 @@ let
|
||||||
version = mkVersionInput inputs.nvim-treesitter-textsubjects;
|
version = mkVersionInput inputs.nvim-treesitter-textsubjects;
|
||||||
src = inputs.nvim-treesitter-textsubjects;
|
src = inputs.nvim-treesitter-textsubjects;
|
||||||
};
|
};
|
||||||
|
|
||||||
smartcolumn-nvim = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
|
||||||
pname = "smartcolumn-nvim";
|
|
||||||
version = mkVersionInput inputs.smartcolumn-nvim;
|
|
||||||
src = inputs.smartcolumn-nvim;
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.programs.vim = {
|
options.my.programs.vim = {
|
||||||
|
@ -89,8 +83,6 @@ in
|
||||||
nvim-web-devicons # for dashboard-nvim
|
nvim-web-devicons # for dashboard-nvim
|
||||||
orgmode
|
orgmode
|
||||||
plenary-nvim # for telescope, neogit
|
plenary-nvim # for telescope, neogit
|
||||||
smartcolumn-nvim
|
|
||||||
telescope-fzf-native-nvim
|
|
||||||
telescope-nvim
|
telescope-nvim
|
||||||
vim-lion
|
vim-lion
|
||||||
which-key-nvim
|
which-key-nvim
|
||||||
|
|
|
@ -75,9 +75,6 @@ wk.register({
|
||||||
b = { "<cmd>Telescope buffers<cr>", "find buffer" },
|
b = { "<cmd>Telescope buffers<cr>", "find buffer" },
|
||||||
},
|
},
|
||||||
}, { prefix = "<leader>" })
|
}, { prefix = "<leader>" })
|
||||||
-- To get fzf loaded and working with telescope, you need to call
|
|
||||||
-- load_extension, somewhere after setup function:
|
|
||||||
require("telescope").load_extension("fzf")
|
|
||||||
|
|
||||||
require("neogit").setup({
|
require("neogit").setup({
|
||||||
disable_commit_confirmation = true,
|
disable_commit_confirmation = true,
|
||||||
|
@ -103,8 +100,8 @@ cmp.setup({
|
||||||
formatting = {
|
formatting = {
|
||||||
format = lspkind.cmp_format({
|
format = lspkind.cmp_format({
|
||||||
mode = "symbol", -- show only symbol annotations
|
mode = "symbol", -- show only symbol annotations
|
||||||
maxwidth = 50, -- prevent the popup from showing more than provided characters
|
maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters)
|
||||||
ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead
|
ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first)
|
||||||
symbol_map = {
|
symbol_map = {
|
||||||
Copilot = "",
|
Copilot = "",
|
||||||
},
|
},
|
||||||
|
@ -121,7 +118,7 @@ cmp.setup({
|
||||||
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||||
["<C-Space>"] = cmp.mapping.complete(),
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
["<C-e>"] = cmp.mapping.abort(),
|
["<C-e>"] = cmp.mapping.abort(),
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
["<CR>"] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_next_item()
|
cmp.select_next_item()
|
||||||
|
@ -450,7 +447,3 @@ require("nvim-tree").setup()
|
||||||
wk.register({
|
wk.register({
|
||||||
t = { "<cmd>NvimTreeFindFileToggle<cr>", "nvim tree" },
|
t = { "<cmd>NvimTreeFindFileToggle<cr>", "nvim tree" },
|
||||||
}, { prefix = "<leader>t", silent = true })
|
}, { prefix = "<leader>t", silent = true })
|
||||||
|
|
||||||
require("smartcolumn").setup({
|
|
||||||
colorcolumn = 120,
|
|
||||||
})
|
|
||||||
|
|
Loading…
Reference in New Issue