diff --git a/.gitignore b/.gitignore index 0171b56..19dc912 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ home/user/.subzsh/plugins/* !home/user/.subzsh/plugins/dirhistory.zsh home/user/.config/nvim/plugin +home/user/.config/nvim/spell home/user/.subbash/bashrc.d/* !home/user/.subbash/bashrc.d/00_test.sh diff --git a/home/user/.config/i3/config b/home/user/.config/i3/config index af65861..92d9f99 100644 --- a/home/user/.config/i3/config +++ b/home/user/.config/i3/config @@ -224,3 +224,6 @@ workspace $ws2 output primary workspace $ws9 output $SecMon workspace $ws10 output $SecMon exec --no-startup-id i3-msg 'workspace $ws1; exec firefox' + + +no_focus [title="^Peek preview$"] diff --git a/home/user/.config/nvim/lua/base/lazy.lua b/home/user/.config/nvim/lua/base/lazy.lua index 3e4d015..3b1d5bb 100644 --- a/home/user/.config/nvim/lua/base/lazy.lua +++ b/home/user/.config/nvim/lua/base/lazy.lua @@ -43,7 +43,7 @@ local plugins = { end }, { - 'EdenEast/nightfox.nvim' + 'EdenEast/nightfox.nvim' -- colorscheme }, { 'ellisonleao/gruvbox.nvim' -- colorscheme @@ -96,14 +96,6 @@ local plugins = { { 'windwp/nvim-ts-autotag' }, - { - 'lervag/vimtex' - }, - { - 'shime/vim-livedown', - enabled = vim.fn.executable "npm" == 1, - build = '/usr/bin/npm install -g livedown' - }, { 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' @@ -201,6 +193,7 @@ local plugins = { }, { 'folke/neodev.nvim', + ft = {'lua'}, dependencies = { 'neovim/nvim-lspconfig' }, @@ -208,6 +201,26 @@ local plugins = { require('neodev').setup() end }, + { + 'toppair/peek.nvim', + enabled = vim.fn.executable "deno" == 1, + ft = {'markdown'}, + build = 'deno task --quiet build:fast', + config = function() + require('peek').setup({ + auto_load = true, + close_on_bdelete = true, + syntax = true, + theme = 'dark', + update_on_change = true, + app = 'webview', + filetype = {'markdown'}, + }) + end, + keys = { + { 'rr', "lua require('peek').open()" }, + } + }, } require("lazy").setup( diff --git a/home/user/.config/nvim/lua/base/mappings/run-scripts.lua b/home/user/.config/nvim/lua/base/mappings/run-scripts.lua index 71f1721..62c6ebf 100644 --- a/home/user/.config/nvim/lua/base/mappings/run-scripts.lua +++ b/home/user/.config/nvim/lua/base/mappings/run-scripts.lua @@ -75,7 +75,6 @@ end autocmd_run_script_by_filetype('python', 'python3') autocmd_run_script_by_filetype('go', 'go run') autocmd_run_script_by_filetype('rust', 'cargo run') -autocmd_run_script_by_filetype('markdown', 'glow') autocmd_run_tests_by_filetype('python', 'pytest') diff --git a/home/user/.local/bin/slm b/home/user/.local/bin/slm index e0274da..4a5b88b 100755 --- a/home/user/.local/bin/slm +++ b/home/user/.local/bin/slm @@ -12,12 +12,16 @@ test -d "$LAYOUTS_DIR" || (mkdir "$LAYOUTS_DIR" && touch "$LAYOUTS_DIR/default.s die_if_invalid_path() { + if [[ -z "$1" ]]; then + _die "Blank name" + fi + if [[ "$1" =~ ".." ]]; then - die "Path can\`t contains '..'" 3 + _die "Path can\`t contains '..'" 3 fi if [[ "$1" = /* ]]; then - die "Path can\`t start from '/'" 3 + _die "Path can\`t start from '/'" 3 fi }