Compare commits
11 Commits
6f574b81e0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a832eec36 | |||
| 116ab17242 | |||
| 5c1ae1da4a | |||
| be35b62a87 | |||
| 95d80c31d5 | |||
| 51515037b3 | |||
| 0a6a42e0b7 | |||
| 1820a8eff5 | |||
| e43d39b957 | |||
| f83ad4c21e | |||
| 0659773daf |
@ -49,5 +49,8 @@ keymap("n", "<S-h>", ":tabprevious<CR>", opts)
|
|||||||
-- Copy to clipboard
|
-- Copy to clipboard
|
||||||
keymap("v", "<C-c>", "\"+y", opts)
|
keymap("v", "<C-c>", "\"+y", opts)
|
||||||
|
|
||||||
|
-- Copy relative path of current ile to clipboard
|
||||||
|
keymap("n", "<C-y>", ":let @+ = expand(\"%\")<CR>", opts)
|
||||||
|
|
||||||
--Close buffer
|
--Close buffer
|
||||||
-- keymap("n", "<C-w>", ":bd | bp <CR>", opts)
|
-- keymap("n", "<C-w>", ":bd | bp <CR>", opts)
|
||||||
|
|||||||
@ -4,16 +4,7 @@ return {
|
|||||||
config = true
|
config = true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"mason-org/mason-lspconfig.nvim",
|
||||||
},
|
|
||||||
{
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
event = "BufReadPre BufNewFile",
|
|
||||||
dependencies = {
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
"williamboman/mason-lspconfig.nvim",
|
|
||||||
"nvimtools/none-ls.nvim",
|
|
||||||
},
|
|
||||||
config = function()
|
config = function()
|
||||||
require("user.plugins.lsp.mason_lsp_config")
|
require("user.plugins.lsp.mason_lsp_config")
|
||||||
require("user.plugins.lsp.diagnostics_config").setup()
|
require("user.plugins.lsp.diagnostics_config").setup()
|
||||||
@ -33,16 +24,22 @@ return {
|
|||||||
|
|
||||||
vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format{async=true}' ]])
|
vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format{async=true}' ]])
|
||||||
end,
|
end,
|
||||||
|
dependencies = {
|
||||||
|
{ "mason-org/mason.nvim", opts = {} },
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
event = "BufReadPre BufNewFile",
|
||||||
|
dependencies = {
|
||||||
|
"nvimtools/none-ls.nvim",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lukas-reineke/lsp-format.nvim",
|
"lukas-reineke/lsp-format.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
local on_attach = function(client)
|
|
||||||
require("lsp-format").on_attach(client)
|
|
||||||
end
|
|
||||||
|
|
||||||
require("lspconfig").gopls.setup { on_attach = on_attach }
|
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,6 +4,8 @@ vim.lsp.enable({
|
|||||||
"omnisharp",
|
"omnisharp",
|
||||||
"pylsp",
|
"pylsp",
|
||||||
"rust_analyzer",
|
"rust_analyzer",
|
||||||
|
"luals",
|
||||||
|
"vimls"
|
||||||
})
|
})
|
||||||
|
|
||||||
-- TODO: this does not work, need to install pylsp-mypy plugin manually
|
-- TODO: this does not work, need to install pylsp-mypy plugin manually
|
||||||
@ -45,4 +47,20 @@ vim.lsp.config('rust_analyzer', {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.lsp.config('luals', {
|
||||||
|
settings = {
|
||||||
|
Lua = {}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.lsp.config('rust_analyzer', {
|
||||||
|
settings = {
|
||||||
|
["rust-analyzer"] = {
|
||||||
|
cargo = {
|
||||||
|
features = "all",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
mason_lspconfig.setup()
|
mason_lspconfig.setup()
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
event = "VeryLazy",
|
lazy = false,
|
||||||
config = true,
|
opts = {
|
||||||
|
region_check_events = "CursorHold,InsertLeave,InsertEnter",
|
||||||
|
-- those are for removing deleted snippets, also a common problem
|
||||||
|
delete_check_events = "TextChanged,InsertEnter",
|
||||||
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
local luasnip = require("luasnip")
|
||||||
|
luasnip.setup(opts)
|
||||||
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"rafamadriz/friendly-snippets",
|
"rafamadriz/friendly-snippets",
|
||||||
-- "dsznajder/vscode-es7-javascript-react-snippets",
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,8 +2,8 @@ function FindProxyForURL(url, host) {
|
|||||||
// Proxy server (customize this line)
|
// Proxy server (customize this line)
|
||||||
var proxy = "PROXY 91.199.147.158:3128";
|
var proxy = "PROXY 91.199.147.158:3128";
|
||||||
|
|
||||||
// Domains related to ChatGPT/OpenAI
|
|
||||||
var proxy_domains = [
|
var proxy_domains = [
|
||||||
|
// Domains related to ChatGPT/OpenAI
|
||||||
"chatgpt.com",
|
"chatgpt.com",
|
||||||
"chat.openai.com",
|
"chat.openai.com",
|
||||||
"openai.com",
|
"openai.com",
|
||||||
@ -11,6 +11,7 @@ function FindProxyForURL(url, host) {
|
|||||||
"platform.openai.com",
|
"platform.openai.com",
|
||||||
"auth0.openai.com",
|
"auth0.openai.com",
|
||||||
|
|
||||||
|
// Youtube related domains
|
||||||
"*.youtube.com",
|
"*.youtube.com",
|
||||||
"youtube.com",
|
"youtube.com",
|
||||||
"*.googlevideo.com",
|
"*.googlevideo.com",
|
||||||
|
|||||||
@ -28,10 +28,11 @@ exec xrandr --output DP-2 --primary
|
|||||||
|
|
||||||
bar {
|
bar {
|
||||||
id 1
|
id 1
|
||||||
|
mode hide
|
||||||
tray_output none
|
tray_output none
|
||||||
font Input Nerd Font 9
|
font Hack Nerd Font 9
|
||||||
status_command "~/Scripts/sway/bar.sh"
|
status_command "~/Scripts/sway/bar.sh"
|
||||||
gaps 0 6 0 0
|
gaps 0 0 0 0
|
||||||
colors {
|
colors {
|
||||||
# focused_workspace #7E9CD8 #7E9CD8 #AAAAAA
|
# focused_workspace #7E9CD8 #7E9CD8 #AAAAAA
|
||||||
}
|
}
|
||||||
@ -76,6 +77,9 @@ bindsym --to-code $mod+m exec $term msg create-window --class in_scratchpad -e n
|
|||||||
bindsym --to-code $mod+e exec $term msg create-window -e neomutt || $term -e neomutt
|
bindsym --to-code $mod+e exec $term msg create-window -e neomutt || $term -e neomutt
|
||||||
bindsym --to-code $mod+n exec $term msg create-window -e newsboat || $term -e newsboat
|
bindsym --to-code $mod+n exec $term msg create-window -e newsboat || $term -e newsboat
|
||||||
|
|
||||||
|
# toggle showing bar
|
||||||
|
bindsym --to-code $mod+minus exec "swaymsg bar 1 mode toggle"
|
||||||
|
|
||||||
# open windows with id "in_scratchpad" in scratchpad
|
# open windows with id "in_scratchpad" in scratchpad
|
||||||
for_window [app_id="in_scratchpad"] move container to scratchpad, focus
|
for_window [app_id="in_scratchpad"] move container to scratchpad, focus
|
||||||
|
|
||||||
|
|||||||
@ -57,6 +57,8 @@ set -g pane-active-border-style "fg=#938AA9"
|
|||||||
|
|
||||||
# status bar
|
# status bar
|
||||||
set-option -g status-style bg=default
|
set-option -g status-style bg=default
|
||||||
|
set -g message-command-style bg=default
|
||||||
|
set -g message-style bg=default
|
||||||
set -g status-left '| #S | '
|
set -g status-left '| #S | '
|
||||||
set -g status-right ''
|
set -g status-right ''
|
||||||
set -g status-left-length 500
|
set -g status-left-length 500
|
||||||
|
|||||||
11
.zprofile
11
.zprofile
@ -3,15 +3,14 @@ export PATH=~/.local/bin:~/.cargo/bin:$PATH
|
|||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export SUDO_EDITOR=/usr/bin/nvim
|
export SUDO_EDITOR=/usr/bin/nvim
|
||||||
export XDG_CURRENT_DESKTOP=Sway
|
export XDG_CURRENT_DESKTOP=Sway
|
||||||
|
export XDG_SESSION_DESKTOP=sway
|
||||||
|
export XDG_SESSION_TYPE=wayland
|
||||||
export HOMEBREW_NO_AUTO_UPDATE=true
|
export HOMEBREW_NO_AUTO_UPDATE=true
|
||||||
export ELECTRON_OZONE_PLATFORM_HINT=auto
|
export ELECTRON_OZONE_PLATFORM_HINT=auto
|
||||||
# Created by `pipx` on 2024-10-08 14:33:09
|
|
||||||
export PATH="$PATH:/Users/nikitabykov/.local/bin"
|
|
||||||
|
|
||||||
# >>> coursier install directory >>>
|
if command -v dbus-update-activation-environment >/dev/null; then
|
||||||
export PATH="$PATH:/Users/nikitabykov/Library/Application Support/Coursier/bin"
|
dbus-update-activation-environment XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
|
||||||
# <<< coursier install directory <<<
|
fi
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
||||||
|
|
||||||
if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then
|
if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then
|
||||||
exec sway
|
exec sway
|
||||||
|
|||||||
1
.zshrc
1
.zshrc
@ -31,6 +31,7 @@ alias toggle_vpn='sudo toggle_vpn'
|
|||||||
alias rr='ranger'
|
alias rr='ranger'
|
||||||
|
|
||||||
# naviagtion aliases
|
# naviagtion aliases
|
||||||
|
alias masters='cd /home/nikita/Documents/woopvault/University/masters/indicators_monitoring'
|
||||||
alias dots='cd ~/dotfiles'
|
alias dots='cd ~/dotfiles'
|
||||||
alias notes='cd ~/Documents/woopvault/'
|
alias notes='cd ~/Documents/woopvault/'
|
||||||
alias work='cd ~/Code/maxim/'
|
alias work='cd ~/Code/maxim/'
|
||||||
|
|||||||
Reference in New Issue
Block a user