Compare commits
18 Commits
69f99793b0
...
lineage
| Author | SHA1 | Date | |
|---|---|---|---|
| 5956cbe20e | |||
| a6ef8ff9c5 | |||
| 1090058c08 | |||
| 6609158c5d | |||
| 4040855adb | |||
|
|
9c2a72669f | ||
| f2fc3599a8 | |||
| cfba74467f | |||
|
|
7a240b42c3 | ||
| 706ed1e2e7 | |||
| 5f83f33abc | |||
| 43166f9f11 | |||
| 7cb5b2d4b6 | |||
| bb89997e23 | |||
| 48353fab32 | |||
| 5b298dac01 | |||
| fdea1f7270 | |||
| 2bba7045ef |
5
.bashrc
5
.bashrc
@@ -4,11 +4,6 @@
|
|||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]
|
|
||||||
then
|
|
||||||
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
|
|
||||||
exec fish $LOGIN_OPTION
|
|
||||||
fi
|
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
|
|||||||
12
.config/nvim/.luarc.json
Normal file
12
.config/nvim/.luarc.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"runtime.version": "LuaJIT",
|
||||||
|
"runtime.path": [
|
||||||
|
"lua/?.lua",
|
||||||
|
"lua/?/init.lua"
|
||||||
|
],
|
||||||
|
"diagnostics.globals": ["vim"],
|
||||||
|
"workspace.checkThirdParty": false,
|
||||||
|
"workspace.library": [
|
||||||
|
"$VIMRUNTIME"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,20 +1,68 @@
|
|||||||
-- Basic settings
|
-- Basic settings
|
||||||
vim.o.number = true -- Enable line numbers
|
vim.o.number = true -- Enable line numbers
|
||||||
vim.o.relativenumber = true -- Enable relative line numbers
|
-- vim.o.relativenumber = true -- Enable relative line numbers
|
||||||
vim.o.tabstop = 4 -- Number of spaces a tab represents
|
vim.o.tabstop = 2 -- Number of spaces a tab represents
|
||||||
vim.o.shiftwidth = 4 -- Number of spaces for each indentation
|
vim.o.shiftwidth = 2 -- Number of spaces for each indentation
|
||||||
vim.o.expandtab = true -- Convert tabs to spaces
|
vim.o.expandtab = true -- Convert tabs to spaces
|
||||||
vim.o.smartindent = true -- Automatically indent new lines
|
vim.o.smartindent = true -- Automatically indent new lines
|
||||||
vim.o.wrap = false -- Disable line wrapping
|
vim.o.wrap = false -- Disable line wrapping
|
||||||
vim.o.cursorline = true -- Highlight the current line
|
vim.o.cursorline = true -- Highlight the current line
|
||||||
vim.o.termguicolors = true -- Enable 24-bit RGB colors
|
vim.o.termguicolors = true -- Enable 24-bit RGB colors
|
||||||
vim.o.clipboard = "unnamedplus"
|
vim.filetype.add({ extension = { svx = "markdown" } })
|
||||||
vim.filetype.add({extension = {svx = "markdown"}})
|
vim.opt.listchars = { tab = "\\│\\", nbsp = "␣", trail = "·", extends = "›", precedes = "‹", leadmultispace = "│ " }
|
||||||
|
vim.opt.list = true
|
||||||
|
|
||||||
|
require('plugins.nvim-neo-tree')
|
||||||
|
require('plugins.rose-pine')
|
||||||
|
require('plugins.treesitter')
|
||||||
|
require('plugins.conform')
|
||||||
|
require('plugins.lsp')
|
||||||
|
require('plugins.diffview')
|
||||||
|
require('plugins.which-key')
|
||||||
|
require('plugins.codecompanion')
|
||||||
|
require('plugins.fff')
|
||||||
|
|
||||||
|
local kitten = vim.fn.expand("~/.local/share/kitty-ssh-kitten/kitty/bin/kitten")
|
||||||
|
vim.opt.clipboard = "unnamedplus"
|
||||||
|
vim.g.clipboard = {
|
||||||
|
name = 'OSC 52',
|
||||||
|
copy = {
|
||||||
|
['+'] = require('vim.ui.clipboard.osc52').copy('+'),
|
||||||
|
-- ['*'] = require('vim.ui.clipboard.osc52').copy('*'),
|
||||||
|
},
|
||||||
|
paste = {
|
||||||
|
['+'] = require('vim.ui.clipboard.osc52').paste('+'),
|
||||||
|
-- ['*'] = require('vim.ui.clipboard.osc52').paste('*'),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
-- Syntax highlighting and filetype plugins
|
|
||||||
vim.cmd('syntax enable')
|
vim.cmd('syntax enable')
|
||||||
vim.cmd('filetype plugin indent on')
|
|
||||||
|
|
||||||
require("config.lazy")
|
|
||||||
|
|
||||||
--vim.cmd[[colorscheme tokyonight]]
|
vim.api.nvim_create_user_command(
|
||||||
|
"Inlay",
|
||||||
|
function()
|
||||||
|
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
|
||||||
|
end,
|
||||||
|
{ desc = 'Toggles Inlay Hints' }
|
||||||
|
)
|
||||||
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
|
callback = function(ev)
|
||||||
|
local client = vim.lsp.get_client_by_id(ev.data.client_id)
|
||||||
|
if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_completion) then
|
||||||
|
vim.opt.completeopt = { 'menu', 'menuone', 'noinsert', 'fuzzy', 'popup' }
|
||||||
|
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
|
||||||
|
vim.keymap.set('i', '<C-Space>', function()
|
||||||
|
vim.lsp.completion.get()
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.diagnostic.config({
|
||||||
|
virtual_lines = {
|
||||||
|
current_line = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.cmd.source("~/.config/nvim/.vimrc")
|
||||||
|
|||||||
19
.config/nvim/lazy-lock.json
Normal file
19
.config/nvim/lazy-lock.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "dae4f5aaa3574bd0c2b9dd20fb9542a02c10471c" },
|
||||||
|
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||||
|
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
|
||||||
|
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||||
|
"conform.nvim": { "branch": "master", "commit": "c2526f1cde528a66e086ab1668e996d162c75f4f" },
|
||||||
|
"image.nvim": { "branch": "master", "commit": "446a8a5cc7a3eae3185ee0c697732c32a5547a0b" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "c953789db7fd28eafe5eb5659846d34b5024b3cc" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||||
|
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
|
"nvim-cmp": { "branch": "main", "commit": "da88697d7f45d16852c6b2769dc52387d1ddc45f" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "79c9a15be5731bc8694840a8fb0c9141c20a80c0" },
|
||||||
|
"nvim-treesitter": { "branch": "main", "commit": "19c729dae6e0eeb79423df0cf37780aa9a7cc3b7" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "803353450c374192393f5387b6a0176d0972b848" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
"rose-pine": { "branch": "main", "commit": "cf2a288696b03d0934da713d66c6d71557b5c997" }
|
||||||
|
}
|
||||||
29
.config/nvim/lsp/ts_ls.lua
Normal file
29
.config/nvim/lsp/ts_ls.lua
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
return {
|
||||||
|
settings = {
|
||||||
|
typescript = {
|
||||||
|
inlayHints = {
|
||||||
|
includeInlayParameterNameHints = "all",
|
||||||
|
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
|
||||||
|
includeInlayFunctionParameterTypeHints = true,
|
||||||
|
includeInlayVariableTypeHints = true,
|
||||||
|
includeInlayVariableTypeHintsWhenTypeMatchesName = true,
|
||||||
|
includeInlayPropertyDeclarationTypeHints = true,
|
||||||
|
includeInlayFunctionLikeReturnTypeHints = true,
|
||||||
|
includeInlayEnumMemberValueHints = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
javascript = {
|
||||||
|
inlayHints = {
|
||||||
|
includeInlayParameterNameHints = "all",
|
||||||
|
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
|
||||||
|
includeInlayFunctionParameterTypeHints = true,
|
||||||
|
includeInlayVariableTypeHints = true,
|
||||||
|
includeInlayVariableTypeHintsWhenTypeMatchesName = true,
|
||||||
|
includeInlayPropertyDeclarationTypeHints = true,
|
||||||
|
includeInlayFunctionLikeReturnTypeHints = true,
|
||||||
|
includeInlayEnumMemberValueHints = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
-- Bootstrap lazy.nvim
|
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
|
||||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
|
||||||
if vim.v.shell_error ~= 0 then
|
|
||||||
vim.api.nvim_echo({
|
|
||||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
|
||||||
{ out, "WarningMsg" },
|
|
||||||
{ "\nPress any key to exit..." },
|
|
||||||
}, true, {})
|
|
||||||
vim.fn.getchar()
|
|
||||||
os.exit(1)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
|
||||||
|
|
||||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
|
||||||
-- loading lazy.nvim so that mappings are correct.
|
|
||||||
-- This is also a good place to setup other settings (vim.opt)
|
|
||||||
vim.g.mapleader = " "
|
|
||||||
vim.g.maplocalleader = "\\"
|
|
||||||
|
|
||||||
-- Setup lazy.nvim
|
|
||||||
require("lazy").setup({
|
|
||||||
spec = {
|
|
||||||
-- import your plugins
|
|
||||||
{ import = "plugins" },
|
|
||||||
},
|
|
||||||
-- Configure any other settings here. See the documentation for more details.
|
|
||||||
-- colorscheme that will be used when installing plugins.
|
|
||||||
install = { colorscheme = {"tokyonight", "habamax" } },
|
|
||||||
-- automatically check for plugin updates
|
|
||||||
checker = { enabled = true, notify = false },
|
|
||||||
})
|
|
||||||
14
.config/nvim/lua/plugins/codecompanion.lua
Normal file
14
.config/nvim/lua/plugins/codecompanion.lua
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
vim.pack.add({ {
|
||||||
|
src = "https://www.github.com/olimorris/codecompanion.nvim",
|
||||||
|
version = vim.version.range("^19.0.0")
|
||||||
|
} })
|
||||||
|
|
||||||
|
-- Somewhere in your config
|
||||||
|
require("codecompanion").setup({
|
||||||
|
interactions = {
|
||||||
|
chat = {
|
||||||
|
adapter = "ollama",
|
||||||
|
model = "qwen2.5-coder:7b "
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
26
.config/nvim/lua/plugins/conform.lua
Normal file
26
.config/nvim/lua/plugins/conform.lua
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
vim.pack.add({
|
||||||
|
'https://github.com/stevearc/conform.nvim'
|
||||||
|
})
|
||||||
|
|
||||||
|
require('conform').setup({
|
||||||
|
formatters_by_ft = {
|
||||||
|
cpp = { "clang-format" },
|
||||||
|
python = { "black" },
|
||||||
|
typescript = { "prettier" },
|
||||||
|
typescriptreact = { "prettier" },
|
||||||
|
},
|
||||||
|
-- Set default options
|
||||||
|
default_format_opts = {
|
||||||
|
lsp_format = "fallback",
|
||||||
|
},
|
||||||
|
-- Set up format-on-save
|
||||||
|
format_on_save = { timeout_ms = 10000 },
|
||||||
|
-- Customize formatters
|
||||||
|
formatters = {
|
||||||
|
-- ['clang-format'] = {
|
||||||
|
-- append_args = function(self, ctx)
|
||||||
|
-- return { "-style={IndentWidth: 4}" }
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
|
},
|
||||||
|
})
|
||||||
6
.config/nvim/lua/plugins/diffview.lua
Normal file
6
.config/nvim/lua/plugins/diffview.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
vim.pack.add({
|
||||||
|
'https://github.com/sindrets/diffview.nvim',
|
||||||
|
})
|
||||||
|
|
||||||
|
require('diffview').setup({
|
||||||
|
})
|
||||||
18
.config/nvim/lua/plugins/fff.lua
Normal file
18
.config/nvim/lua/plugins/fff.lua
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
vim.pack.add({ 'https://github.com/dmtrKovalenko/fff.nvim' })
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('PackChanged', {
|
||||||
|
callback = function(ev)
|
||||||
|
local name, kind = ev.data.spec.name, ev.data.kind
|
||||||
|
if name == 'fff.nvim' and (kind == 'install' or kind == 'update') then
|
||||||
|
if not ev.data.active then vim.cmd.packadd('fff.nvim') end
|
||||||
|
require('fff.download').download_or_build_binary()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.g.fff = {
|
||||||
|
lazy_sync = true,
|
||||||
|
debug = { enabled = true, show_scores = true },
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.keymap.set('n', 'ff', function() require('fff').live_grep() end, { desc = 'FFFind files' })
|
||||||
@@ -1,67 +1,29 @@
|
|||||||
return {
|
vim.pack.add({
|
||||||
|
'https://github.com/neovim/nvim-lspconfig',
|
||||||
|
'https://github.com/mason-org/mason.nvim',
|
||||||
|
'https://github.com/mason-org/mason-lspconfig.nvim',
|
||||||
|
})
|
||||||
|
|
||||||
{
|
require('mason').setup({
|
||||||
"neovim/nvim-lspconfig",
|
ui = {
|
||||||
},
|
icons = {
|
||||||
{
|
package_installed = "✓",
|
||||||
"mason-org/mason.nvim",
|
package_pending = "➜",
|
||||||
opts = {
|
package_uninstalled = "✗"
|
||||||
ui = {
|
|
||||||
icons = {
|
|
||||||
package_installed = "✓",
|
|
||||||
package_pending = "➜",
|
|
||||||
package_uninstalled = "✗"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"williamboman/mason-lspconfig.nvim",
|
|
||||||
opts = {
|
|
||||||
ensure_installed = { "clangd" },
|
|
||||||
},
|
|
||||||
dependencies = {
|
|
||||||
{ "mason-org/mason.nvim", opts = {} },
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'hrsh7th/nvim-cmp',
|
|
||||||
opts = {
|
|
||||||
sources = {
|
|
||||||
{ name = 'nvim_lsp' },
|
|
||||||
{ name = 'buffer' },
|
|
||||||
{ name = 'path' },
|
|
||||||
}
|
|
||||||
},
|
|
||||||
dependencies = {
|
|
||||||
{'L3MON4D3/LuaSnip'},
|
|
||||||
{'hrsh7th/cmp-buffer'},
|
|
||||||
{'hrsh7th/cmp-nvim-lsp'},
|
|
||||||
{'saadparwaiz1/cmp_luasnip'},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'stevearc/conform.nvim',
|
|
||||||
opts = {
|
|
||||||
-- Define your formatters
|
|
||||||
formatters_by_ft = {
|
|
||||||
cpp = { "clang-format" },
|
|
||||||
},
|
|
||||||
-- Set default options
|
|
||||||
default_format_opts = {
|
|
||||||
lsp_format = "fallback",
|
|
||||||
},
|
|
||||||
-- Set up format-on-save
|
|
||||||
format_on_save = { timeout_ms = 500 },
|
|
||||||
-- Customize formatters
|
|
||||||
formatters = {
|
|
||||||
['clang-format'] = {
|
|
||||||
append_args = function(self, ctx)
|
|
||||||
return { "-style={IndentWidth: 4}" }
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
require('mason-lspconfig').setup({
|
||||||
|
ensure_installed = {
|
||||||
|
"svelte",
|
||||||
|
"clangd",
|
||||||
|
"ts_ls",
|
||||||
|
"pyright",
|
||||||
|
"lua_ls"
|
||||||
|
},
|
||||||
|
automatic_enable = true,
|
||||||
|
})
|
||||||
|
vim.lsp.config('svelte', {
|
||||||
|
-- capabilities = svelte_lsp_capabilities,
|
||||||
|
filetypes = { "svelte" },
|
||||||
|
})
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
return {
|
vim.pack.add({
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
--Neo-Tree
|
||||||
branch = "v3.x",
|
'https://github.com/MunifTanjim/nui.nvim',
|
||||||
dependencies = {
|
'https://github.com/nvim-lua/plenary.nvim',
|
||||||
"nvim-lua/plenary.nvim",
|
"https://github.com/nvim-tree/nvim-web-devicons",
|
||||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
'https://github.com/nvim-neo-tree/neo-tree.nvim',
|
||||||
"MunifTanjim/nui.nvim",
|
})
|
||||||
{"3rd/image.nvim", opts = {}}, -- Optional image support in preview window: See `# Preview Mode` for more information
|
|
||||||
}
|
require("neo-tree").setup({
|
||||||
}
|
close_if_last_window = true,
|
||||||
|
})
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
return {
|
|
||||||
"rose-pine/neovim",
|
|
||||||
name = "rose-pine",
|
|
||||||
|
|
||||||
config = function()
|
|
||||||
local configs = require("rose-pine");
|
|
||||||
|
|
||||||
configs.setup({
|
vim.pack.add({
|
||||||
variant = "moon",
|
'https://github.com/rose-pine/neovim',
|
||||||
styles = {
|
})
|
||||||
transparency = true;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.cmd("colorscheme rose-pine")
|
require("rose-pine").setup({
|
||||||
end
|
variant = "moon",
|
||||||
}
|
styles = {
|
||||||
|
transparency = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
vim.cmd[[colorscheme rose-pine]]
|
||||||
|
|||||||
@@ -1,20 +1,18 @@
|
|||||||
return{
|
vim.pack.add({
|
||||||
"nvim-treesitter/nvim-treesitter",
|
'https://github.com/nvim-treesitter/nvim-treesitter'
|
||||||
build = ":TSUpdate",
|
})
|
||||||
dependencies = {
|
|
||||||
-- Automatically install LSPs and related tools to stdpath for Neovim
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
"williamboman/mason-lspconfig.nvim",
|
|
||||||
},
|
|
||||||
config = function ()
|
|
||||||
|
|
||||||
local configs = require("nvim-treesitter.configs")
|
require('nvim-treesitter').setup({
|
||||||
|
highlight = {
|
||||||
|
enable = true
|
||||||
|
},
|
||||||
|
})
|
||||||
|
require('nvim-treesitter').install({ 'lua', 'rust', 'javascript', 'zig', "c", "typescript", "cpp", "haskell", "svelte",
|
||||||
|
"python", "vim", "vimdoc", "html", "wgsl" })
|
||||||
|
|
||||||
configs.setup({
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
|
callback = function(args)
|
||||||
sync_install = false,
|
pcall(vim.treesitter.start, args.buf)
|
||||||
highlight = { enable = true },
|
end,
|
||||||
indent = { enable = true },
|
})
|
||||||
})
|
vim.filetype.add({ extension = { wgsl = "wgsl" } })
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|||||||
7
.config/nvim/lua/plugins/which-key.lua
Normal file
7
.config/nvim/lua/plugins/which-key.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
vim.pack.add({
|
||||||
|
'https://github.com/folke/which-key.nvim',
|
||||||
|
})
|
||||||
|
|
||||||
|
require("which-key").setup({
|
||||||
|
|
||||||
|
})
|
||||||
61
.config/nvim/nvim-pack-lock.json
Normal file
61
.config/nvim/nvim-pack-lock.json
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"plugins": {
|
||||||
|
"codecompanion.nvim": {
|
||||||
|
"rev": "5b87dd95a5b62bbf198ef147b96d22751ccc1faa",
|
||||||
|
"src": "https://www.github.com/olimorris/codecompanion.nvim",
|
||||||
|
"version": "19.0.0 - 20.0.0"
|
||||||
|
},
|
||||||
|
"conform.nvim": {
|
||||||
|
"rev": "40dcec5555f960b0a04340d76eabdf4efe78599d",
|
||||||
|
"src": "https://github.com/stevearc/conform.nvim"
|
||||||
|
},
|
||||||
|
"diffview.nvim": {
|
||||||
|
"rev": "4516612fe98ff56ae0415a259ff6361a89419b0a",
|
||||||
|
"src": "https://github.com/sindrets/diffview.nvim"
|
||||||
|
},
|
||||||
|
"fff.nvim": {
|
||||||
|
"rev": "fbee146c44c99b02fc00ad1d5d32f44e53e2aeec",
|
||||||
|
"src": "https://github.com/dmtrKovalenko/fff.nvim"
|
||||||
|
},
|
||||||
|
"mason-lspconfig.nvim": {
|
||||||
|
"rev": "a324581a3c83fdacdb9804b79de1cbe00ce18550",
|
||||||
|
"src": "https://github.com/mason-org/mason-lspconfig.nvim"
|
||||||
|
},
|
||||||
|
"mason.nvim": {
|
||||||
|
"rev": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65",
|
||||||
|
"src": "https://github.com/mason-org/mason.nvim"
|
||||||
|
},
|
||||||
|
"neo-tree.nvim": {
|
||||||
|
"rev": "9d6826582a3e8c84787bd7355df22a2812a1ad59",
|
||||||
|
"src": "https://github.com/nvim-neo-tree/neo-tree.nvim"
|
||||||
|
},
|
||||||
|
"neovim": {
|
||||||
|
"rev": "cf2a288696b03d0934da713d66c6d71557b5c997",
|
||||||
|
"src": "https://github.com/rose-pine/neovim"
|
||||||
|
},
|
||||||
|
"nui.nvim": {
|
||||||
|
"rev": "de740991c12411b663994b2860f1a4fd0937c130",
|
||||||
|
"src": "https://github.com/MunifTanjim/nui.nvim"
|
||||||
|
},
|
||||||
|
"nvim-lspconfig": {
|
||||||
|
"rev": "2163c54bb6cfec53e3e555665ada945b8c8331b9",
|
||||||
|
"src": "https://github.com/neovim/nvim-lspconfig"
|
||||||
|
},
|
||||||
|
"nvim-treesitter": {
|
||||||
|
"rev": "5cb05e1b0fa3c469958a2b26f36b3fe930af221c",
|
||||||
|
"src": "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||||
|
},
|
||||||
|
"nvim-web-devicons": {
|
||||||
|
"rev": "737cf6c657898d0c697311d79d361288a1343d50",
|
||||||
|
"src": "https://github.com/nvim-tree/nvim-web-devicons"
|
||||||
|
},
|
||||||
|
"plenary.nvim": {
|
||||||
|
"rev": "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
|
||||||
|
"src": "https://github.com/nvim-lua/plenary.nvim"
|
||||||
|
},
|
||||||
|
"which-key.nvim": {
|
||||||
|
"rev": "3aab2147e74890957785941f0c1ad87d0a44c15a",
|
||||||
|
"src": "https://github.com/folke/which-key.nvim"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
.config/xieves-dotfiles
Submodule
1
.config/xieves-dotfiles
Submodule
Submodule .config/xieves-dotfiles added at 1555dea674
@@ -37,6 +37,12 @@
|
|||||||
# prompt_char # prompt symbol
|
# prompt_char # prompt symbol
|
||||||
)
|
)
|
||||||
|
|
||||||
|
function prompt_my_zmx_session() {
|
||||||
|
if [[ -n $ZMX_SESSION ]]; then
|
||||||
|
p10k segment -b '%k' -f '%f' -t "[$ZMX_SESSION]"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# The list of segments shown on the right. Fill it with less important segments.
|
# The list of segments shown on the right. Fill it with less important segments.
|
||||||
# Right prompt on the last prompt line (where you are typing your commands) gets
|
# Right prompt on the last prompt line (where you are typing your commands) gets
|
||||||
# automatically hidden when the input line reaches it. Right prompt above the
|
# automatically hidden when the input line reaches it. Right prompt above the
|
||||||
@@ -110,6 +116,7 @@
|
|||||||
# battery # internal battery
|
# battery # internal battery
|
||||||
# wifi # wifi speed
|
# wifi # wifi speed
|
||||||
# example # example user-defined segment (see prompt_example function below)
|
# example # example user-defined segment (see prompt_example function below)
|
||||||
|
my_zmx_session
|
||||||
)
|
)
|
||||||
|
|
||||||
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
|
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
|
||||||
|
|||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -10,3 +10,6 @@
|
|||||||
[submodule ".ohmyzsh"]
|
[submodule ".ohmyzsh"]
|
||||||
path = .ohmyzsh
|
path = .ohmyzsh
|
||||||
url = https://github.com/ohmyzsh/ohmyzsh.git
|
url = https://github.com/ohmyzsh/ohmyzsh.git
|
||||||
|
[submodule ".config/xieves-dotfiles"]
|
||||||
|
path = .config/xieves-dotfiles
|
||||||
|
url = https://gitlab.com/xieve/dotfiles
|
||||||
|
|||||||
8
.tmux.conf
Normal file
8
.tmux.conf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#set-option -g remain-on-exit on
|
||||||
|
set-option -g default-shell /bin/zsh
|
||||||
|
set -g history-limit 30000
|
||||||
|
# Allow Tmux to pass through OSC 52 escape sequences
|
||||||
|
set -g allow-passthrough on
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
set -g set-clipboard on
|
||||||
12
.zshrc
12
.zshrc
@@ -17,6 +17,13 @@ export ZSH_CUSTOM="$HOME/.config/zsh_custom"
|
|||||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
|
|
||||||
|
if [[ -n $ZMX_SESSION ]]; then
|
||||||
|
export PS1="[$ZMX_SESSION] ${PS1}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export ANDROID_PW_FILE="/tmp/key_list.txt"
|
||||||
|
export EDITOR="nvim"
|
||||||
|
|
||||||
# Set list of themes to pick from when loading at random
|
# Set list of themes to pick from when loading at random
|
||||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
# a theme from this variable instead of looking in $ZSH/themes/
|
# a theme from this variable instead of looking in $ZSH/themes/
|
||||||
@@ -118,3 +125,8 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.config/zsh_custom/10-p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.config/zsh_custom/10-p10k.zsh.
|
||||||
[[ ! -f ~/.config/zsh_custom/10-p10k.zsh ]] || source ~/.config/zsh_custom/10-p10k.zsh
|
[[ ! -f ~/.config/zsh_custom/10-p10k.zsh ]] || source ~/.config/zsh_custom/10-p10k.zsh
|
||||||
|
export USE_CCACHE=1
|
||||||
|
export CCACHE_EXEC=/usr/bin/ccache
|
||||||
|
ccache -M 50G > /dev/null
|
||||||
|
|
||||||
|
path=("$HOME/.nix-profile/bin" $path)
|
||||||
|
|||||||
Reference in New Issue
Block a user