feat: update some stuff
This commit is contained in:
parent
bbe81986fd
commit
376656e51c
@ -1,7 +1,7 @@
|
|||||||
# Generated by Powerlevel10k configuration wizard on 2021-09-16 at 15:20 CEST.
|
# Generated by Powerlevel10k configuration wizard on 2022-12-06 at 23:53 CET.
|
||||||
# Based on romkatv/powerlevel10k/config/p10k-pure.zsh.
|
# Based on romkatv/powerlevel10k/config/p10k-pure.zsh.
|
||||||
# Wizard options: nerdfont-complete + powerline, small icons, pure, rpromt, 1 line,
|
# Wizard options: nerdfont-complete + powerline, large icons, pure, snazzy, 1 line,
|
||||||
# compact, transient_prompt, instant_prompt=verbose.
|
# compact, instant_prompt=quiet.
|
||||||
# Type `p10k configure` to generate another config.
|
# Type `p10k configure` to generate another config.
|
||||||
#
|
#
|
||||||
# Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure).
|
# Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure).
|
||||||
@ -38,30 +38,29 @@
|
|||||||
autoload -Uz is-at-least && is-at-least 5.1 || return
|
autoload -Uz is-at-least && is-at-least 5.1 || return
|
||||||
|
|
||||||
# Prompt colors.
|
# Prompt colors.
|
||||||
local main='242'
|
|
||||||
local grey='242'
|
local grey='242'
|
||||||
local red='1'
|
local red='#FF5C57'
|
||||||
local yellow='3'
|
local yellow='#F3F99D'
|
||||||
local blue='4'
|
local blue='#57C7FF'
|
||||||
local magenta='5'
|
local magenta='#FF6AC1'
|
||||||
local cyan='6'
|
local cyan='#9AEDFE'
|
||||||
local white='7'
|
local white='#F1F1F0'
|
||||||
|
|
||||||
# Left prompt segments.
|
# Left prompt segments.
|
||||||
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
|
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
|
||||||
# context # user@host
|
context # user@host
|
||||||
dir # current directory
|
dir # current directory
|
||||||
vcs # git status
|
vcs # git status
|
||||||
# command_execution_time # previous command duration
|
command_execution_time # previous command duration
|
||||||
# virtualenv # python virtual environment
|
virtualenv # python virtual environment
|
||||||
prompt_char # prompt symbol
|
prompt_char # prompt symbol
|
||||||
)
|
)
|
||||||
|
|
||||||
# Right prompt segments.
|
# Right prompt segments.
|
||||||
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
||||||
command_execution_time # previous command duration
|
# command_execution_time # previous command duration
|
||||||
virtualenv # python virtual environment
|
# virtualenv # python virtual environment
|
||||||
context # user@host
|
# context # user@host
|
||||||
# time # current time
|
# time # current time
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -77,15 +76,15 @@
|
|||||||
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
|
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
|
||||||
|
|
||||||
# Magenta prompt symbol if the last command succeeded.
|
# Magenta prompt symbol if the last command succeeded.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=$main
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=$gray
|
||||||
# Red prompt symbol if the last command failed.
|
# Red prompt symbol if the last command failed.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=$red
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=$red
|
||||||
# Default prompt symbol.
|
# Default prompt symbol.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='>'
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='▶'
|
||||||
# Prompt symbol in command vi mode.
|
# Prompt symbol in command vi mode.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='>'
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'
|
||||||
# Prompt symbol in visual vi mode is the same as in command mode.
|
# Prompt symbol in visual vi mode is the same as in command mode.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='>'
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='❮'
|
||||||
# Prompt symbol in overwrite vi mode is the same as in command mode.
|
# Prompt symbol in overwrite vi mode is the same as in command mode.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=false
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=false
|
||||||
|
|
||||||
@ -96,7 +95,7 @@
|
|||||||
typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER=
|
typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER=
|
||||||
|
|
||||||
# Blue current directory.
|
# Blue current directory.
|
||||||
typeset -g POWERLEVEL9K_DIR_FOREGROUND=$white
|
typeset -g POWERLEVEL9K_DIR_FOREGROUND=$gray
|
||||||
|
|
||||||
# Context format when root: user@host. The first part white, the rest grey.
|
# Context format when root: user@host. The first part white, the rest grey.
|
||||||
typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f"
|
typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f"
|
||||||
@ -162,7 +161,7 @@
|
|||||||
# - always: Trim down prompt when accepting a command line.
|
# - always: Trim down prompt when accepting a command line.
|
||||||
# - same-dir: Trim down prompt when accepting a command line unless this is the first command
|
# - same-dir: Trim down prompt when accepting a command line unless this is the first command
|
||||||
# typed after changing current working directory.
|
# typed after changing current working directory.
|
||||||
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=always
|
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off
|
||||||
|
|
||||||
# Instant prompt mode.
|
# Instant prompt mode.
|
||||||
#
|
#
|
||||||
@ -174,7 +173,7 @@
|
|||||||
# - verbose: Enable instant prompt and print a warning when detecting console output during
|
# - verbose: Enable instant prompt and print a warning when detecting console output during
|
||||||
# zsh initialization. Choose this if you've never tried instant prompt, haven't
|
# zsh initialization. Choose this if you've never tried instant prompt, haven't
|
||||||
# seen the warning, or if you are unsure what this all means.
|
# seen the warning, or if you are unsure what this all means.
|
||||||
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
|
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
|
||||||
|
|
||||||
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
|
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
|
||||||
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
|
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
|
||||||
|
@ -6,6 +6,9 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
|||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
if [ -d "$HOME/.asdf" ] ; then
|
if [ -d "$HOME/.asdf" ] ; then
|
||||||
. "$HOME/.asdf/asdf.sh"
|
. "$HOME/.asdf/asdf.sh"
|
||||||
fi
|
fi
|
||||||
@ -106,17 +109,22 @@ if type podman &> /dev/null; then
|
|||||||
source <(podman completion zsh)
|
source <(podman completion zsh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
if type podman-compose &> /dev/null; then
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
alias pc=podman-compose
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Auto connect to tmux session of ssh
|
# Auto connect to tmux session of ssh
|
||||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||||
# tmux attach-session -t $USER || tmux new-session -s $USER
|
# tmux attach-session -t $USER || tmux new-session -s $USER
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
export PNPM_HOME="$HOME/.local/share/pnpm"
|
export PNPM_HOME="$HOME/.local/share/pnpm"
|
||||||
export PATH="$PNPM_HOME:$PATH"
|
export PATH="$PNPM_HOME:$PATH"
|
||||||
|
|
||||||
|
[ -n "$TMUX" ] && export TERM=screen-256color
|
||||||
|
|
||||||
# tabtab source for packages
|
# tabtab source for packages
|
||||||
# uninstall by removing these lines
|
# uninstall by removing these lines
|
||||||
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true
|
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
lastupdatecheck: 0
|
lastupdatecheck: 0
|
||||||
recentrepos:
|
recentrepos:
|
||||||
|
- /home/max/.dotfiles
|
||||||
|
- /home/max/Projects/ruumio/feat-api
|
||||||
|
- /home/max/Projects/nx-test
|
||||||
|
- /home/max/Projects/ruumio/new-api-stack
|
||||||
|
- /home/max/Projects/ruumio/nx-test
|
||||||
- /home/max/Projects/silvester
|
- /home/max/Projects/silvester
|
||||||
- /home/max/Projects/ruumio/main
|
- /home/max/Projects/ruumio/main
|
||||||
- /home/max/Projects/ruumio/feat-prejoin-avatar-soon
|
- /home/max/Projects/ruumio/feat-prejoin-avatar-soon
|
||||||
- /home/max/Projects/ruumio/feat-wavy-bg
|
- /home/max/Projects/ruumio/feat-wavy-bg
|
||||||
- /home/max/Projects/ruumio/feat-3d-poi
|
- /home/max/Projects/ruumio/feat-3d-poi
|
||||||
- /home/max/.dotfiles
|
|
||||||
- /home/max/Projects/plantarium
|
- /home/max/Projects/plantarium
|
||||||
- /home/max/Projects/jim-fx.com
|
- /home/max/Projects/jim-fx.com
|
||||||
- /home/max/Projects/ruumio
|
- /home/max/Projects/ruumio
|
||||||
|
@ -8,7 +8,7 @@ local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
|||||||
require("nvim-autopairs").setup()
|
require("nvim-autopairs").setup()
|
||||||
require("copilot").setup()
|
require("copilot").setup()
|
||||||
require("copilot_cmp").setup({
|
require("copilot_cmp").setup({
|
||||||
clear_after_cursor = true
|
clear_after_cursor = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
@ -58,11 +58,10 @@ cmp.setup({
|
|||||||
{ name = "copilot" },
|
{ name = "copilot" },
|
||||||
{ name = "nvim_lua" },
|
{ name = "nvim_lua" },
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
-- { name = "cmp_tabnine", max_item_count = 3 },
|
|
||||||
{ name = "luasnip" },
|
{ name = "luasnip" },
|
||||||
{ name = "emoji" },
|
{ name = "emoji" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
{ name = "buffer" },
|
-- { name = "buffer" },
|
||||||
{ name = "calc" },
|
{ name = "calc" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -74,7 +74,7 @@ lsp.sumneko_lua.setup({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities();
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
|
|
||||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||||
|
|
||||||
@ -101,6 +101,7 @@ lsp.jsonls.setup({
|
|||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
settings = {
|
settings = {
|
||||||
|
provideFormatter = false,
|
||||||
json = {
|
json = {
|
||||||
schemas = {
|
schemas = {
|
||||||
{
|
{
|
||||||
@ -151,13 +152,13 @@ lsp.intelephense.setup({
|
|||||||
"wp-cli",
|
"wp-cli",
|
||||||
},
|
},
|
||||||
environment = {
|
environment = {
|
||||||
includePaths = '/home/max/.composer/vendor/php-stubs/' -- this line forces the composer path for the stubs in case inteliphense don't find it...
|
includePaths = "/home/max/.composer/vendor/php-stubs/", -- this line forces the composer path for the stubs in case inteliphense don't find it...
|
||||||
},
|
},
|
||||||
files = {
|
files = {
|
||||||
maxSize = 5000000;
|
maxSize = 5000000,
|
||||||
};
|
},
|
||||||
};
|
},
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
lsp.cssls.setup({
|
lsp.cssls.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
@ -197,10 +198,10 @@ lsp.rust_analyzer.setup({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
lsp.gopls.setup {
|
lsp.gopls.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = on_attach
|
on_attach = on_attach,
|
||||||
}
|
})
|
||||||
|
|
||||||
lsp.yamlls.setup({
|
lsp.yamlls.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
@ -211,10 +212,10 @@ lsp.yamlls.setup({
|
|||||||
["https://raw.githubusercontent.com/quantumblacklabs/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"] = "conf/**/*catalog*",
|
["https://raw.githubusercontent.com/quantumblacklabs/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"] = "conf/**/*catalog*",
|
||||||
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
|
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
|
||||||
["https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/traefik-v2-file-provider.json"] = "rules.yml",
|
["https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/traefik-v2-file-provider.json"] = "rules.yml",
|
||||||
["https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/traefik-v2.json"] = "traefik.yml"
|
["https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/traefik-v2.json"] = "traefik.yml",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
lsp.glslls.setup(require("configs.lsp-glsl"))
|
lsp.glslls.setup(require("configs.lsp-glsl"))
|
||||||
|
@ -139,6 +139,32 @@ ins_left({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
ins_left({
|
||||||
|
"lsp_progress",
|
||||||
|
-- With spinner
|
||||||
|
colors = {
|
||||||
|
percentage = colors.cyan,
|
||||||
|
title = colors.cyan,
|
||||||
|
message = colors.cyan,
|
||||||
|
spinner = colors.cyan,
|
||||||
|
lsp_client_name = colors.magenta,
|
||||||
|
use = true,
|
||||||
|
},
|
||||||
|
separators = {
|
||||||
|
component = " ",
|
||||||
|
progress = " | ",
|
||||||
|
-- message = { pre = "(", post = ")" },
|
||||||
|
percentage = { pre = "", post = "%% " },
|
||||||
|
title = { pre = "", post = ": " },
|
||||||
|
lsp_client_name = { pre = "[", post = "]" },
|
||||||
|
spinner = { pre = "", post = "" },
|
||||||
|
message = { commenced = "In Progress", completed = "Completed" },
|
||||||
|
},
|
||||||
|
display_components = { "lsp_client_name", "spinner", { "title", "percentage", "message" } },
|
||||||
|
timer = { progress_enddelay = 500, spinner = 1000, lsp_client_name_enddelay = 1000 },
|
||||||
|
spinner_symbols = { "🌑 ", "🌒 ", "🌓 ", "🌔 ", "🌕 ", "🌖 ", "🌗 ", "🌘 " },
|
||||||
|
})
|
||||||
|
|
||||||
-- Git Diff
|
-- Git Diff
|
||||||
local function diff_source()
|
local function diff_source()
|
||||||
local gitsigns = vim.b.gitsigns_status_dict
|
local gitsigns = vim.b.gitsigns_status_dict
|
||||||
|
@ -14,7 +14,7 @@ g.mapleader = " "
|
|||||||
-- Allows to easily exit terminal mode
|
-- Allows to easily exit terminal mode
|
||||||
-- map('t', '<Esc>', [[<C-\><C-n>]], remap)
|
-- map('t', '<Esc>', [[<C-\><C-n>]], remap)
|
||||||
|
|
||||||
map("n", "<C-o>", ":Telescope find_files<CR>", options)
|
map("n", "<C-o>", ":Telescope find_files preview={timeout=1000}<CR>", options)
|
||||||
map("n", "<C-f>", ":lua require'telescope.builtin'.live_grep{ cwd = vim.fn.getcwd() }<CR>", options)
|
map("n", "<C-f>", ":lua require'telescope.builtin'.live_grep{ cwd = vim.fn.getcwd() }<CR>", options)
|
||||||
-- map("n", "<C-p>", ":Telescope command_center<CR>", options)
|
-- map("n", "<C-p>", ":Telescope command_center<CR>", options)
|
||||||
map("n", "<Leader><Leader>", "za", remap)
|
map("n", "<Leader><Leader>", "za", remap)
|
||||||
@ -28,15 +28,14 @@ map("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", options)
|
|||||||
|
|
||||||
map("n", "K", "<cmd>Lspsaga hover_doc<CR>", { silent = true })
|
map("n", "K", "<cmd>Lspsaga hover_doc<CR>", { silent = true })
|
||||||
-- map("n", "<leader>o", "<cmd>LSoutlineToggle<CR>", { silent = true })
|
-- map("n", "<leader>o", "<cmd>LSoutlineToggle<CR>", { silent = true })
|
||||||
map("n", "<leader>e", "<cmd>Lspsaga show_cursor_diagnostics<CR>", { silent = true })
|
map("n", "<leader>e", "<cmd>lua vim.lsp.buf.hover()<CR>", { silent = true })
|
||||||
map("n", "<Leader>rn", "<cmd>Lspsaga rename<CR>", options)
|
map("n", "<Leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", options)
|
||||||
map({ "n", "v" }, "<leader>c", "<cmd>Lspsaga code_action<CR>", { silent = true })
|
map({ "n", "v" }, "<leader>c", "<cmd>Lspsaga code_action<CR>", { silent = true })
|
||||||
map({ "n", "v" }, "gr", "Lspsaga lsp_finder<CR>", options)
|
map({ "n", "v" }, "gr", "<cmd>Lspsaga lsp_finder<CR>", options)
|
||||||
|
|
||||||
map("n", "<leader>t", ":TroubleToggle<CR>", remap)
|
map("n", "<leader>t", ":TroubleToggle<CR>", remap)
|
||||||
|
|
||||||
map("n", "<leader>t", translate, remap)
|
map({ "n", "v" }, "<leader>t", translate, remap)
|
||||||
map("v", "<leader>t", translate, remap)
|
|
||||||
|
|
||||||
-- DAP Functionality
|
-- DAP Functionality
|
||||||
map("n", "<Leader>b", ":lua require('dap').toggle_breakpoint()<CR>", options)
|
map("n", "<Leader>b", ":lua require('dap').toggle_breakpoint()<CR>", options)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
-- General --
|
-- General --
|
||||||
-------------
|
-------------
|
||||||
local set = vim.opt
|
local set = vim.opt
|
||||||
local g = vim.g;
|
local g = vim.g
|
||||||
set.swapfile = false -- Don't use swapfile
|
set.swapfile = false -- Don't use swapfile
|
||||||
set.updatetime = 0 -- Faster completion
|
set.updatetime = 0 -- Faster completion
|
||||||
set.encoding = "utf-8" -- The encoding displayed
|
set.encoding = "utf-8" -- The encoding displayed
|
||||||
@ -73,6 +73,6 @@ vim.diagnostic.config({
|
|||||||
-----------------
|
-----------------
|
||||||
set.hidden = true -- Required to keep multiple buffers open multiple buffers
|
set.hidden = true -- Required to keep multiple buffers open multiple buffers
|
||||||
set.timeoutlen = 500 -- By default timeoutlen is 1000 ms
|
set.timeoutlen = 500 -- By default timeoutlen is 1000 ms
|
||||||
set.lazyredraw = true -- Disable lazyredraw
|
set.lazyredraw = false -- Disable lazyredraw
|
||||||
set.synmaxcol = 240 -- Max column for syntax highlight
|
set.synmaxcol = 240 -- Max column for syntax highlight
|
||||||
set.updatetime = 700 -- ms to wait for trigger an event
|
set.updatetime = 700 -- ms to wait for trigger an event
|
||||||
|
@ -41,15 +41,22 @@ return packer.startup(function(use)
|
|||||||
"petertriho/nvim-scrollbar",
|
"petertriho/nvim-scrollbar",
|
||||||
config = function()
|
config = function()
|
||||||
require("configs.scrollbar")
|
require("configs.scrollbar")
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
use({
|
use({
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require('gitsigns').setup()
|
require("gitsigns").setup()
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
use("akinsho/nvim-toggleterm.lua")
|
use("akinsho/nvim-toggleterm.lua")
|
||||||
|
use({
|
||||||
|
"akinsho/git-conflict.nvim",
|
||||||
|
tag = "*",
|
||||||
|
config = function()
|
||||||
|
require("git-conflict").setup()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
use({
|
use({
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
@ -102,12 +109,8 @@ return packer.startup(function(use)
|
|||||||
-- Lsp Setup --
|
-- Lsp Setup --
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
use("arkav/lualine-lsp-progress")
|
||||||
use("neovim/nvim-lspconfig")
|
use("neovim/nvim-lspconfig")
|
||||||
use({ 'j-hui/fidget.nvim',
|
|
||||||
config = function()
|
|
||||||
require('fidget').setup()
|
|
||||||
end
|
|
||||||
})
|
|
||||||
use("williamboman/mason.nvim")
|
use("williamboman/mason.nvim")
|
||||||
use("williamboman/mason-lspconfig.nvim")
|
use("williamboman/mason-lspconfig.nvim")
|
||||||
use("jose-elias-alvarez/null-ls.nvim")
|
use("jose-elias-alvarez/null-ls.nvim")
|
||||||
@ -137,7 +140,6 @@ return packer.startup(function(use)
|
|||||||
use({
|
use({
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
requires = {
|
requires = {
|
||||||
|
|
||||||
"rafamadriz/friendly-snippets",
|
"rafamadriz/friendly-snippets",
|
||||||
"saadparwaiz1/cmp_luasnip",
|
"saadparwaiz1/cmp_luasnip",
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
@ -205,7 +207,8 @@ return packer.startup(function(use)
|
|||||||
--------------------
|
--------------------
|
||||||
-- IDE Type Stuff --
|
-- IDE Type Stuff --
|
||||||
--------------------
|
--------------------
|
||||||
use({ "ThePrimeagen/git-worktree.nvim",
|
use({
|
||||||
|
"ThePrimeagen/git-worktree.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("git-worktree").setup()
|
require("git-worktree").setup()
|
||||||
end,
|
end,
|
||||||
@ -220,7 +223,7 @@ return packer.startup(function(use)
|
|||||||
-- Dap Debugger -- Have not yet been able to set this up
|
-- Dap Debugger -- Have not yet been able to set this up
|
||||||
use({ "mfussenegger/nvim-dap" })
|
use({ "mfussenegger/nvim-dap" })
|
||||||
use({ "rcarriga/nvim-dap-ui" })
|
use({ "rcarriga/nvim-dap-ui" })
|
||||||
use { "mxsdev/nvim-dap-vscode-js", requires = { "mfussenegger/nvim-dap" } }
|
use({ "mxsdev/nvim-dap-vscode-js", requires = { "mfussenegger/nvim-dap" } })
|
||||||
|
|
||||||
use("editorconfig/editorconfig-vim")
|
use("editorconfig/editorconfig-vim")
|
||||||
use({
|
use({
|
||||||
|
@ -5,11 +5,11 @@ local lazygit = Terminal:new({
|
|||||||
direction = "float",
|
direction = "float",
|
||||||
float_opts = {
|
float_opts = {
|
||||||
winblend = 0,
|
winblend = 0,
|
||||||
border = "shadow"
|
border = "shadow",
|
||||||
},
|
},
|
||||||
on_close = function()
|
on_close = function()
|
||||||
Terminal:close()
|
Terminal:close()
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
function _Lazygit_toggle()
|
function _Lazygit_toggle()
|
||||||
@ -22,7 +22,7 @@ local pnpm = Terminal:new({
|
|||||||
cmd = "pnpm dev",
|
cmd = "pnpm dev",
|
||||||
dir = "git_dir",
|
dir = "git_dir",
|
||||||
size = 5,
|
size = 5,
|
||||||
direction = "vertical"
|
direction = "vertical",
|
||||||
})
|
})
|
||||||
|
|
||||||
function _Pnpm_toggle()
|
function _Pnpm_toggle()
|
||||||
@ -33,7 +33,7 @@ vim.api.nvim_set_keymap("n", "<Leader>d", "<cmd>lua _Pnpm_toggle()<CR>", { norem
|
|||||||
|
|
||||||
local chtConfig = Terminal:new({
|
local chtConfig = Terminal:new({
|
||||||
cmd = "cht",
|
cmd = "cht",
|
||||||
direction = "float"
|
direction = "float",
|
||||||
})
|
})
|
||||||
|
|
||||||
function _ChtConfig_toggle()
|
function _ChtConfig_toggle()
|
||||||
@ -42,6 +42,6 @@ end
|
|||||||
|
|
||||||
vim.api.nvim_set_keymap("n", "<Leader><C-l>", "<cmd>lua _ChtConfig_toggle()<CR>", { noremap = true, silent = true })
|
vim.api.nvim_set_keymap("n", "<Leader><C-l>", "<cmd>lua _ChtConfig_toggle()<CR>", { noremap = true, silent = true })
|
||||||
|
|
||||||
require("toggleterm").setup {
|
require("toggleterm").setup({
|
||||||
shade_terminals = true
|
shade_terminals = true,
|
||||||
}
|
})
|
||||||
|
@ -38,12 +38,6 @@ cat.setup({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- require("nightfox").setup({
|
|
||||||
-- options = {
|
|
||||||
-- transparent = true,
|
|
||||||
-- },
|
|
||||||
-- })
|
|
||||||
|
|
||||||
vim.cmd("colorscheme catppuccin")
|
vim.cmd("colorscheme catppuccin")
|
||||||
|
|
||||||
require("utils.theme-reloader")
|
require("utils.theme-reloader")
|
||||||
|
Loading…
Reference in New Issue
Block a user