update nvim and tmux

This commit is contained in:
ipu 2025-06-18 22:12:16 +03:00
parent 25075231f1
commit f2ce4e6c93
20 changed files with 67 additions and 170 deletions

View file

@ -1,19 +1,20 @@
{ {
"blink.cmp": { "branch": "main", "commit": "b6f11a0aa33e601c469a126e3ed6e35208fe3ea3" }, "blink.cmp": { "branch": "main", "commit": "b6f11a0aa33e601c469a126e3ed6e35208fe3ea3" },
"catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" },
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
"gruvbox.nvim": { "branch": "main", "commit": "089b60e92aa0a1c6fa76ff527837cd35b6f5ac81" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lazy.nvim": { "branch": "main", "commit": "f15a93907ddad3d9139aea465ae18336d87f5ce6" },
"lazydev.nvim": { "branch": "main", "commit": "a1b78b2ac6f978c72e76ea90ae92a94edf380cfc" }, "lazydev.nvim": { "branch": "main", "commit": "a1b78b2ac6f978c72e76ea90ae92a94edf380cfc" },
"lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" }, "lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
"mini.nvim": { "branch": "main", "commit": "0420076298c4457f200c2de468f65d080597a347" }, "mini.nvim": { "branch": "main", "commit": "0420076298c4457f200c2de468f65d080597a347" },
"mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" }, "mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" },
"neorg": { "branch": "main", "commit": "ed43ed58116caa0a17bbbc7aa663e32bf94bc531" }, "neorg": { "branch": "main", "commit": "ed43ed58116caa0a17bbbc7aa663e32bf94bc531" },
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" }, "nui.nvim": { "branch": "main", "commit": "8d5b0b568517935d3c84f257f272ef004d9f5a59" },
"nvim-lspconfig": { "branch": "master", "commit": "d37812c49063eda10ad1f7c7695509365ac7bd47" }, "nvim-lspconfig": { "branch": "master", "commit": "d37812c49063eda10ad1f7c7695509365ac7bd47" },
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" }, "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-treesitter": { "branch": "master", "commit": "a840137349fcc35b5ad2c718a9b034b93012fa43" }, "nvim-treesitter": { "branch": "master", "commit": "a840137349fcc35b5ad2c718a9b034b93012fa43" },
"pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" }, "pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" },
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" }, "plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "dae2eac9d91464448b584c7949a31df8faefec56" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "dae2eac9d91464448b584c7949a31df8faefec56" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" } "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
} }

View file

@ -1,3 +0,0 @@
return {
{ "ellisonleao/gruvbox.nvim", config = function() vim.cmd.colorscheme "gruvbox" end}
}

View file

@ -18,12 +18,12 @@ return {
config = function() config = function()
local capabilities = require('blink.cmp').get_lsp_capabilities() local capabilities = require('blink.cmp').get_lsp_capabilities()
require("lspconfig").lua_ls.setup({ capabilities = capabilities }) require("lspconfig").lua_ls.setup({ capabilities = capabilities })
require("lspconfig").pylsp.setup({ capabilities = capabilities }) require("lspconfig").basedpyright.setup({ capabilities = capabilities })
require("lspconfig").gopls.setup({ capabilities = capabilities }) require("lspconfig").gopls.setup({ capabilities = capabilities })
vim.keymap.set("n", "<leader>g", function() vim.lsp.buf.format() end) vim.keymap.set("n", "<leader>g", function() vim.lsp.buf.format() end, { desc = "LSP: format buffer" })
vim.keymap.set("n", "gd", require('telescope.builtin').lsp_definitions) vim.keymap.set("n", "gd", require('telescope.builtin').lsp_definitions, { desc = "LSP: go to definition" })
vim.keymap.set("n", "<leader>e", function() vim.diagnostic.open_float() end, { desc = "LSP: show diagnostic info" })
end end
} }
} }

View file

@ -19,7 +19,7 @@ return {
["core.dirman"] = { ["core.dirman"] = {
config = { config = {
workspaces = { workspaces = {
notes = "~/Documents/notes/neorg/", notes = "~/notes/neorg/",
}, },
default_workspace = "notes", default_workspace = "notes",
}, },

View file

@ -12,8 +12,9 @@ return {
} }
} }
require("telescope").load_extension("fzf") require("telescope").load_extension("fzf")
vim.keymap.set("n", "<space>ff", require("telescope.builtin").find_files) vim.keymap.set("n", "<space>ff", require("telescope.builtin").find_files, {desc="Telescope: find files"})
vim.keymap.set("n", "<space>fh", require("telescope.builtin").help_tags) vim.keymap.set("n", "<space>fh", require("telescope.builtin").help_tags, {desc="Telescope: help tags"})
vim.keymap.set("n", "<space>fg", require("telescope.builtin").live_grep) vim.keymap.set("n", "<space>fg", require("telescope.builtin").live_grep, {desc="Telescope: live grep"})
vim.keymap.set("n", "<space>fb", require("telescope.builtin").buffers, {desc="Telescope: buffers"})
end end
} }

View file

@ -0,0 +1,11 @@
return {
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
config = function()
require("catppuccin").setup({
flavour = "frappe", -- Options: latte, frappe, macchiato, mocha
})
vim.cmd.colorscheme "catppuccin"
end,
}

View file

@ -0,0 +1,18 @@
return {
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}

View file

@ -1,10 +0,0 @@
# /home/ipu/.config/tmuxinator/algo.yml
name: algo
root: ~/Code/my/algo/
windows:
- editor:
- nvimp .
- shell:
-

View file

@ -1,10 +0,0 @@
# /home/ipu/.config/tmuxinator/bootdev-cpp.yml
name: bootdev-cpp
root: ~/Code/my/bootdev/cpp/
windows:
- editor:
- nvim .
- shell:
-

View file

@ -1,53 +0,0 @@
# /home/ipu/.config/tmuxinator/bootdev-static-site-gen.yml
name: bootdev-static-site-gen
root: ~/Code/my/bootdev/static-site-gen/
# Optional tmux socket
# socket_name: foo
# Note that the pre and post options have been deprecated and will be replaced by
# project hooks.
# Project hooks
# Runs on project start, always
# on_project_start: command
# Run on project start, the first time
# on_project_first_start: command
# Run on project start, after the first time
# on_project_restart: command
# Run on project exit ( detaching from tmux session )
# on_project_exit: command
# Run on project stop
# on_project_stop: command
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: poetry shell
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: editor
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
# startup_pane: 1
# Controls whether the tmux session should be attached to automatically. Defaults to true.
# attach: false
windows:
- editor:
- poetry run nvim .
- zsh:
- poetry shell
- git:
- lazygit

View file

@ -1,11 +0,0 @@
# /home/ipu/.config/tmuxinator/learn-go.yml
name: learn-go
root: ~/Code/my/bootdev/go-learn/go-file-storage/
windows:
- editor:
- nvim main.go
- shell:
-

View file

@ -1,11 +0,0 @@
# /home/ipu/.config/tmuxinator/learn-web.yml
name: learn-web
root: ~/Code/my/freecodecamp/
windows:
- editor:
- nvim .
- shell:
-

View file

@ -1,12 +0,0 @@
# /home/ipu/.config/tmuxinator/mediaserv.yml
name: mediaserv
root: ~/Code/my/mediaserv/
windows:
- editor:
- nvimp .
- shell:
-
- git:
- lazygit

View file

@ -1,10 +1,10 @@
# /home/ipu/.config/tmuxinator/notes.yml # /home/ipu/.config/tmuxinator/notes.yml
name: notes name: notes
root: ~/Documents/notes/neorg/ root: ~/notes/neorg/
windows: windows:
- editor: - editor:
- nvim index.norg - nvim .
- shell: - shell:
- -

View file

@ -1,12 +0,0 @@
# /home/ipu/.config/tmuxinator/podarunok.yml
name: podarunok
root: ~/Code/my/podarunok/
windows:
- editor:
- nvimp .
- shell:
-
- git:
- lazygit

View file

@ -1,15 +0,0 @@
# /home/ipu/.config/tmuxinator/work-ape.yml
name: work-ape
root: ~/Code/work/ape/
windows:
- server:
- ssh ape
- editor-app:
- cd app
- nvimp .
- git:
- cd app
- lazygit

View file

@ -1,15 +0,0 @@
# /home/ipu/.config/tmuxinator/work-fomo.yml
name: work-fomo
root: ~/Code/work/fomo/fomo_bot/
windows:
- nvim:
- cd app
- nvimp .
- shell:
-
- git:
- cd app
- lazygit

View file

@ -2,10 +2,11 @@
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark'
set -g @plugin 'omerxx/tmux-sessionx' set -g @plugin 'omerxx/tmux-sessionx'
set -g @catppuccin_flavor 'frappe'
run ~/.tmux/plugins/catppuccin/tmux/catppuccin.tmux
run '~/.tmux/plugins/tpm/tpm' run '~/.tmux/plugins/tpm/tpm'
# set window count from 1 # set window count from 1
@ -21,3 +22,20 @@ bind-key C-a send-prefix
# tmux sessionx - turn on tmuxinator mode # tmux sessionx - turn on tmuxinator mode
set -g @sessionx-tmuxinator-mode 'on' set -g @sessionx-tmuxinator-mode 'on'
set -g @sessionx-zoxide-mode 'on' set -g @sessionx-zoxide-mode 'on'
# enable mouse
set -g mouse on
# set vi copy mode
setw -g mode-keys vi
# Catppuccin theme
# Make the status line more pleasant.
set -g status-left ""
set -g status-right '#[fg=#{@thm_crust},bg=#{@thm_teal}] session: #S '
# Ensure that everything on the right side of the status line
# is included.
set -g status-right-length 100
set-option -g default-terminal "tmux-256color"
set-option -a terminal-features "xterm-256color:RGB"

@ -0,0 +1 @@
Subproject commit b2f219c00609ea1772bcfbdae0697807184743e4

@ -1 +0,0 @@
Subproject commit c7653229c7f7e5beb1f9f4ba298b3b1c39ffd8ce