summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config/hypr/custom/rules.conf8
-rw-r--r--config/hypr/hyprland.conf30
-rw-r--r--config/mako/config2
-rw-r--r--config/nvim/Session.vim54
-rw-r--r--config/nvim/lazy-lock.json19
-rw-r--r--config/nvim/lua/autocommands.lua14
-rw-r--r--config/nvim/lua/options.lua4
-rw-r--r--config/nvim/lua/plugins.lua1
-rw-r--r--config/nvim/lua/plugins/zk.lua26
-rw-r--r--config/zk/config.toml96
10 files changed, 149 insertions, 105 deletions
diff --git a/config/hypr/custom/rules.conf b/config/hypr/custom/rules.conf
index 68a4aac..8e064bc 100644
--- a/config/hypr/custom/rules.conf
+++ b/config/hypr/custom/rules.conf
@@ -23,7 +23,7 @@ windowrulev2 = center, class:^(nm-connection-editor)$
# Tiling
windowrulev2 = tile, class:^dev\.warp\.Warp$
-# Picture-in-Picture
+# Картинка в картинке
windowrulev2 = float, title:^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$
windowrulev2 = keepaspectratio, title:^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$
windowrulev2 = move 73% 72%, title:^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$
@@ -47,6 +47,12 @@ windowrulev2 = float, title:^(Save As)(.*)$
windowrulev2 = float, title:^(Library)(.*)$
windowrulev2 = float, title:^(File Upload)(.*)$
+windowrulev2 = keepaspectratio,class:^(firefox)$,title:^(Картинка в картинке)$
+windowrulev2 = noborder,class:^(firefox)$,title:^(Картинка в картинке)$
+windowrulev2 = pin,class:^(firefox)$,title:^(Картинка в картинке)$
+windowrulev2 = float,class:^(firefox)$,title:^(Картинка в картинке)$
+windowrulev2 = size 40%,class:^(firefox)$,title:^(Картинка в картинке)$
+
# --- Tearing ---
windowrulev2 = immediate, title:.*\.exe
diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf
index c5ae504..1fc1e14 100644
--- a/config/hypr/hyprland.conf
+++ b/config/hypr/hyprland.conf
@@ -1,23 +1,3 @@
-
-# #######################################################################################
-# AUTOGENERATED HYPR CONFIG.
-# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
-# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
-# #######################################################################################
-
-
-# This is an example Hyprland config file.
-# Refer to the wiki for more information.
-# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/
-
-# Please note not all available settings / options are set here.
-# For a full list, see the wiki
-
-# You can split this configuration into multiple files
-# Create your files separately and then link them to this file like this:
-# source = ~/.config/hypr/myColors.conf
-
-
################
### MONITORS ###
################
@@ -25,6 +5,7 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
monitor=DP-7,1920x1080,auto,auto
+monitor=DP-9,1920x1080,auto,auto
###################
### MY PROGRAMS ###
@@ -47,7 +28,7 @@ $menu = wofi --show drun
exec-once = $terminal
exec-once = nm-applet &
-exec-once = waybar & hyprpaper & firefox
+exec-once = mako & hypridle & waybar & hyprpaper & firefox
#############################
@@ -78,7 +59,7 @@ general {
col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
- resize_on_border = false
+ resize_on_border = true
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
@@ -88,7 +69,7 @@ general {
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
- rounding = 10
+ rounding = 4
# Change transparency of focused and unfocused windows
active_opacity = 1.0
@@ -102,7 +83,7 @@ decoration {
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
- size = 3
+ size = 6
passes = 1
vibrancy = 0.1696
@@ -185,6 +166,7 @@ device {
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
$shiftMod = SUPER_SHIFT
+
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
diff --git a/config/mako/config b/config/mako/config
index 022c8ef..953e854 100644
--- a/config/mako/config
+++ b/config/mako/config
@@ -5,7 +5,7 @@ width=300
height=110
border-size=2
border-color=#33ccff
-border-radius=10
+border-radius=4
icons=0
max-icon-size=64
default-timeout=5000
diff --git a/config/nvim/Session.vim b/config/nvim/Session.vim
deleted file mode 100644
index 510124f..0000000
--- a/config/nvim/Session.vim
+++ /dev/null
@@ -1,54 +0,0 @@
-let SessionLoad = 1
-let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1
-let v:this_session=expand("<sfile>:p")
-silent only
-silent tabonly
-cd ~/projects/dotfiles/nvim
-if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
- let s:wipebuf = bufnr('%')
-endif
-let s:shortmess_save = &shortmess
-if &shortmess =~ 'A'
- set shortmess=aoOA
-else
- set shortmess=aoO
-endif
-badd +6 init.lua
-badd +25 lua/plugins/theme.lua
-badd +1 lua/plugins/tree.lua
-argglobal
-%argdel
-edit lua/plugins/tree.lua
-argglobal
-balt lua/plugins/theme.lua
-setlocal fdm=expr
-setlocal fde=nvim_treesitter#foldexpr()
-setlocal fmr={{{,}}}
-setlocal fdi=#
-setlocal fdl=6
-setlocal fml=1
-setlocal fdn=20
-setlocal fen
-let s:l = 1 - ((0 * winheight(0) + 22) / 44)
-if s:l < 1 | let s:l = 1 | endif
-keepjumps exe s:l
-normal! zt
-keepjumps 1
-normal! 0
-tabnext 1
-if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
- silent exe 'bwipe ' . s:wipebuf
-endif
-unlet! s:wipebuf
-set winheight=1 winwidth=20
-let &shortmess = s:shortmess_save
-let s:sx = expand("<sfile>:p:r")."x.vim"
-if filereadable(s:sx)
- exe "source " . fnameescape(s:sx)
-endif
-let &g:so = s:so_save | let &g:siso = s:siso_save
-set hlsearch
-nohlsearch
-doautoall SessionLoadPost
-unlet SessionLoad
-" vim: set ft=vim :
diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json
index 6b58a8b..a464922 100644
--- a/config/nvim/lazy-lock.json
+++ b/config/nvim/lazy-lock.json
@@ -3,7 +3,7 @@
"auto-save.nvim": { "branch": "main", "commit": "37c82fd548e3f5ffc2d9d020a65dac1044584f44" },
"blink.cmp": { "branch": "main", "commit": "022521a8910a5543b0251b21c9e1a1e989745796" },
"codecompanion.nvim": { "branch": "main", "commit": "9edf22cb71711cd7fab7671a25ed5424011a379d" },
- "conform.nvim": { "branch": "master", "commit": "0e93e0d12d2f7ebdea9e3e444dfaff0050cefbe6" },
+ "conform.nvim": { "branch": "master", "commit": "8132ec733eed3bf415b97b76797ca41b59f51d7d" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"go.nvim": { "branch": "master", "commit": "a3455f48cff718a86275115523dcc735535a13aa" },
"goerr-nvim": { "branch": "main", "commit": "d30ba1cab652e78dbf6a644eb4823be57e9af203" },
@@ -12,24 +12,25 @@
"headlines.nvim": { "branch": "master", "commit": "bf17c96a836ea27c0a7a2650ba385a7783ed322e" },
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
- "lsp_signature.nvim": { "branch": "master", "commit": "a4e3c15dfdce8783c074539b1835edae75fa63d5" },
+ "lsp_signature.nvim": { "branch": "master", "commit": "d50e40b3bf9324128e71b0b7e589765ce89466d2" },
"lspsaga.nvim": { "branch": "main", "commit": "920b1253e1a26732e53fac78412f6da7f674671d" },
- "lualine.nvim": { "branch": "master", "commit": "0c6cca9f2c63dadeb9225c45bc92bb95a151d4af" },
+ "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
"nightfly": { "branch": "master", "commit": "8c55003e89f321a48a8cd4bb426dd3e7c58f0646" },
- "nvim-dap": { "branch": "master", "commit": "ea82027c3447dc1a022be9a9884de276c05cd33a" },
+ "nvim-dap": { "branch": "master", "commit": "40a8189b8a57664a1850b0823fdcb3ac95b9f635" },
"nvim-dap-go": { "branch": "main", "commit": "8763ced35b19c8dc526e04a70ab07c34e11ad064" },
"nvim-dap-ui": { "branch": "master", "commit": "73a26abf4941aa27da59820fd6b028ebcdbcf932" },
- "nvim-lspconfig": { "branch": "master", "commit": "036885e8e5456d3907626b634693234f628afef6" },
+ "nvim-lspconfig": { "branch": "master", "commit": "7ad4a11cc5742774877c529fcfb2702f7caf75e4" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
- "nvim-tree.lua": { "branch": "master", "commit": "1c733e8c1957dc67f47580fe9c458a13b5612d5b" },
+ "nvim-tree.lua": { "branch": "master", "commit": "6b5b36659688767fb9f133bb83024ab1466fe5cd" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
- "nvim-treesitter-context": { "branch": "master", "commit": "464a443b5a6657f39772b20baa95d02ffe97b268" },
- "nvim-treesitter-textobjects": { "branch": "master", "commit": "0f051e9813a36481f48ca1f833897210dbcfffde" },
+ "nvim-treesitter-context": { "branch": "master", "commit": "1a1a7c5d6d75cb49bf64049dafab15ebe294a79f" },
+ "nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" },
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
"nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
"smartcolumn.nvim": { "branch": "main", "commit": "92f3773af80d674f1eb61e112dca79e2fa449fd1" },
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
- "todotxt.nvim": { "branch": "main", "commit": "225ac77fea10a9ad9a48d0247a8d3c23f33cb2ba" }
+ "todotxt.nvim": { "branch": "main", "commit": "225ac77fea10a9ad9a48d0247a8d3c23f33cb2ba" },
+ "zk-nvim": { "branch": "main", "commit": "8fdd7032633045ece559273370fc0ec75ee8ffce" }
}
diff --git a/config/nvim/lua/autocommands.lua b/config/nvim/lua/autocommands.lua
index 802d9e9..1225718 100644
--- a/config/nvim/lua/autocommands.lua
+++ b/config/nvim/lua/autocommands.lua
@@ -85,12 +85,6 @@ vim.api.nvim_create_autocmd("BufEnter", {
end,
})
-vim.api.nvim_create_autocmd({ "BufEnter", "BufAdd", "BufNew", "BufNewFile", "BufWinEnter" }, {
- group = vim.api.nvim_create_augroup("TS_FOLD_WORKAROUND", {}),
- callback = function()
- -- vim.cmd([[normal zR]])
- end,
-})
vim.api.nvim_create_autocmd("FileType", {
pattern = "*",
callback = function(args)
@@ -129,6 +123,7 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, {
require("nvim-tree.api").tree.open()
end,
})
+
vim.api.nvim_create_autocmd("FileType", {
pattern = "go",
callback = function()
@@ -140,17 +135,12 @@ vim.api.nvim_create_autocmd("FileType", {
vim.opt_local.cindent = false
end,
})
+
vim.filetype.add({
extension = {
hjson = "hjson",
},
})
-vim.api.nvim_create_autocmd("VimResized", {
- pattern = "*",
- callback = function()
- vim.opt.scrolloff = vim.fn.floor(vim.fn.winheight(0) / 2)
- end,
-})
vim.api.nvim_create_autocmd("InsertEnter", {
pattern = "*",
diff --git a/config/nvim/lua/options.lua b/config/nvim/lua/options.lua
index 8d55306..d80d242 100644
--- a/config/nvim/lua/options.lua
+++ b/config/nvim/lua/options.lua
@@ -29,15 +29,11 @@ local options = {
numberwidth = 4,
signcolumn = "yes",
wrap = true,
- scrolloff = 8,
- sidescrolloff = 8,
syntax = "on",
foldmethod = "expr",
foldexpr = "v:lua.vim.treesitter.foldexpr()",
- -- foldexpr = "nvim_treesitter#foldexpr()"
foldnestmax = 10,
foldlevel = 9,
- -- foldlevelstart = 99,
scrolloff = 999,
so = vim.fn.floor(vim.fn.winheight(0) / 2),
guicursor = "n-v-c:block,i-ci-ve:hor10,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175",
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua
index 0e9701d..26bc1e8 100644
--- a/config/nvim/lua/plugins.lua
+++ b/config/nvim/lua/plugins.lua
@@ -27,6 +27,7 @@ require("lazy").setup({
require("plugins.lualine"),
require("plugins.telescope"),
require("plugins.columns"),
+ require("plugins.zk"),
}, {
performance = {
rtp = {
diff --git a/config/nvim/lua/plugins/zk.lua b/config/nvim/lua/plugins/zk.lua
new file mode 100644
index 0000000..1640b77
--- /dev/null
+++ b/config/nvim/lua/plugins/zk.lua
@@ -0,0 +1,26 @@
+return {
+ "zk-org/zk-nvim",
+ version = "v0.3.0",
+ config = function()
+ require("zk").setup({
+ picker = "telescope",
+
+ lsp = {
+ -- `config` is passed to `vim.lsp.start(config)`
+ config = {
+ name = "zk",
+ cmd = { "zk", "lsp" },
+ filetypes = { "markdown" },
+ -- on_attach = ...
+ -- etc, see `:h vim.lsp.start()`
+ },
+
+ -- automatically attach buffers in a zk notebook that match the given filetypes
+ auto_attach = {
+ enabled = true,
+ filetypes = { "markdown" }, -- moved to lsp.config above
+ },
+ },
+ })
+ end,
+}
diff --git a/config/zk/config.toml b/config/zk/config.toml
new file mode 100644
index 0000000..0468b82
--- /dev/null
+++ b/config/zk/config.toml
@@ -0,0 +1,96 @@
+# NOTEBOOK SETTINGS
+[notebook]
+dir = "~/Документы/notebook"
+
+# NOTE SETTINGS
+[note]
+
+# Language used when writing notes.
+# This is used to generate slugs or with date formats.
+language = "ru"
+
+# The default title used for new note, if no `--title` flag is provided.
+default-title = "Untitled"
+
+# Template used to generate a note's filename, without extension.
+filename = "{{id}}-{{slug title}}"
+
+# The file extension used for the notes.
+extension = "md"
+
+# Template used to generate a note's content.
+# If not an absolute path, it is relative to .zk/templates/
+template = "default.md"
+
+# Configure random ID generation.
+
+# The charset used for random IDs.
+id-charset = "alphanum"
+
+# Length of the generated IDs.
+id-length = 4
+
+# Letter case for the random IDs.
+id-case = "lower"
+
+
+# EXTRA VARIABLES
+[extra]
+author = "NeonXP"
+
+
+# GROUP OVERRIDES
+[group.journal]
+paths = ["journal/weekly", "journal/daily"]
+
+[group.journal.note]
+filename = "{{format-date now}}"
+
+
+# MARKDOWN SETTINGS
+[format.markdown]
+# Enable support for #hashtags
+hashtags = true
+# Enable support for :colon:separated:tags:
+colon-tags = true
+
+
+# EXTERNAL TOOLS
+[tool]
+
+# Default editor used to open notes.
+editor = "nvim"
+
+# Default shell used by aliases and commands.
+shell = "/bin/zsh"
+
+# Pager used to scroll through long output.
+pager = "less -FIRX"
+
+# Command used to preview a note during interactive fzf mode.
+fzf-preview = "bat -p --color always {-1}"
+
+# NAMED FILTERS
+[filter]
+recents = "--sort created- --created-after 'last two weeks'"
+
+# COMMAND ALIASES
+[alias]
+
+# Edit the last modified note.
+edlast = "zk edit --limit 1 --sort modified- $@"
+
+# Edit the notes selected interactively among the notes created the last two weeks.
+recent = "zk edit --sort created- --created-after 'last two weeks' --interactive"
+
+# Show a random note.
+lucky = "zk list --quiet --format full --sort random --limit 1"
+
+# LSP (EDITOR INTEGRATION)
+[lsp]
+
+[lsp.diagnostics]
+# Report titles of wiki-links as hints.
+wiki-title = "hint"
+# Warn for dead links between notes.
+dead-link = "error"