From c786d0a3a7dc4ab4df0ab9fdf564e79eef32ba53 Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sat, 17 Jul 2021 11:30:55 +0200 Subject: [PATCH] more vim stuff --- eww/.config/eww/eww.xml | 277 ++++++++++-------- nvim/.config/nvim/fnl/dots/keybinds.fnl | 5 +- nvim/.config/nvim/fnl/dots/plugins.fnl | 12 +- nvim/.config/nvim/fnl/dots/plugins/lsp.fnl | 3 +- .../nvim/fnl/dots/plugins/telescope.fnl | 2 +- nvim/.config/nvim/fnl/init.fnl | 1 + 6 files changed, 167 insertions(+), 133 deletions(-) diff --git a/eww/.config/eww/eww.xml b/eww/.config/eww/eww.xml index 2732fb0..0224aea 100644 --- a/eww/.config/eww/eww.xml +++ b/eww/.config/eww/eww.xml @@ -10,6 +10,14 @@ + + + + hello, world + + + + @@ -18,19 +26,20 @@ |  {{ round((EWW_NET["enp34s0"].NET_UP) * 8 / (1024 * 1024), 2)}} -  {{ round((EWW_NET["enp34s0"].NET_DOWN) * 8 / (1024 * 1024), 2)}} - |  {{EWW_RAM}} - |  {{ round((EWW_DISK["/"].free) / (1024 * 1024 * 1024), 2)}} +  {{ round((EWW_NET["enp34s0"].NET_DOWN) * 8 / (1024 * 1024), 2)}} + |  {{EWW_RAM}} + |  {{ round((EWW_DISK["/"].free) / (1024 * 1024 * 1024), 2)}} - {{(EWW_NET[kek].NET_UP) * 10}} + - asdf {{ round(0.1234, 2) }} - + asdf {{ round(0.1234, 2) }} + - + + - - notify-send 'ree' 'this is {{shit}}' - + + + notify-send 'ree' 'this is {{shit}}' + - + - - + + - - - {{text}}test + + + {{text}}test - {{text}} - {{text}} - {{text}} - {{text}} + {{text}} + {{text}} + {{text}} + {{text}} - - + + - - - - - + + + + + - - - - - - - - - - - - - + + + + + + + - + + + + + + + + + @@ -106,12 +116,15 @@ done + + false + enp34s0 - + echo 25 @@ -124,82 +137,90 @@ false - - + + + + + + + + date + + + + + date + + + + + cat ~/fuck + + + + + {"hi": "ho", "hey": "fuck", "lol": "test" } + + + + + + + /home/leon/reee.sh + + + + + + + + + + - - while true; do - sleep 1; - notify-send 'hi' 'ho' - date - done - - - - date - + - - cat ~/fuck - - - - - {"hi": "ho", "hey": "fuck", "lol": "test" } - - - - - - - /home/leon/reee.sh - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nvim/.config/nvim/fnl/dots/keybinds.fnl b/nvim/.config/nvim/fnl/dots/keybinds.fnl index cf58fec..46c5fed 100644 --- a/nvim/.config/nvim/fnl/dots/keybinds.fnl +++ b/nvim/.config/nvim/fnl/dots/keybinds.fnl @@ -9,7 +9,7 @@ ; undo autopairs fuckup (set vim.g.AutoPairsShortcutBackInsert "") -(utils.keymap [:n] : "Telescope find_files") +(utils.keymap [:n] : "Telescope file_browser") (utils.keymap :n :K "") (utils.keymap :v :K "") @@ -38,7 +38,8 @@ "h" (cmd "bprevious" "previous buffer") "l" (cmd "bnext" "next buffer") "o" (cmd "Telescope live_grep" "Grep files") - "p" (cmd "Telescope file_browser" "Open file-browser") + "p" (cmd "Telescope frecency" "Open file-browser") + ;"p" (cmd "Telescope find_files" "Open file-browser") ":" (cmd "Telescope commands" "Search command with fzf") "s" (cmd "w" "Save file") diff --git a/nvim/.config/nvim/fnl/dots/plugins.fnl b/nvim/.config/nvim/fnl/dots/plugins.fnl index 58e72af..de154c2 100644 --- a/nvim/.config/nvim/fnl/dots/plugins.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins.fnl @@ -16,7 +16,15 @@ :nvim-telescope/telescope.nvim {:mod "dots.plugins.telescope" :cmd ["Telescope"] - :requires [:nvim-lua/popup.nvim :nvim-lua/plenary.nvim]} + :requires [:nvim-lua/popup.nvim + :nvim-lua/plenary.nvim + :nvim-telescope/telescope.nvim]} + + :nvim-telescope/telescope-frecency.nvim {:requires [:tami5/sql.nvim] + :opt false} + ;:config #((. (require :telescope) :load_extension) "frecency")} + + :kyazdani42/nvim-web-devicons {} @@ -108,6 +116,8 @@ ;; -------------------- + :AndrewRadev/splitjoin.vim {} + :Olical/conjure {} :tami5/compe-conjure {:requires [:Olical/conjure]} diff --git a/nvim/.config/nvim/fnl/dots/plugins/lsp.fnl b/nvim/.config/nvim/fnl/dots/plugins/lsp.fnl index 229372b..9cff299 100644 --- a/nvim/.config/nvim/fnl/dots/plugins/lsp.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/lsp.fnl @@ -79,7 +79,8 @@ (let [rust-tools (require "rust-tools")] - (rust-tools.setup {:tools {:inlay_hints {:show_parameter_hints false}}})) + (rust-tools.setup {:tools {:inlay_hints {:show_parameter_hints false} + :autoSetHints false}})) (let [sumneko_root_path (.. vim.env.HOME "/.local/share/lua-language-server") sumneko_binary (.. sumneko_root_path "/bin/Linux/lua-language-server")] diff --git a/nvim/.config/nvim/fnl/dots/plugins/telescope.fnl b/nvim/.config/nvim/fnl/dots/plugins/telescope.fnl index 421b38e..f855bb4 100644 --- a/nvim/.config/nvim/fnl/dots/plugins/telescope.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/telescope.fnl @@ -6,6 +6,6 @@ (telescope.setup {:defaults {:mappings {:i {: actions.close}}}}) -;(telescope.load_extension "dap") +(telescope.load_extension "frecency") (utils.keymap :n : ":Telescope find_files") diff --git a/nvim/.config/nvim/fnl/init.fnl b/nvim/.config/nvim/fnl/init.fnl index b70ab60..e590605 100644 --- a/nvim/.config/nvim/fnl/init.fnl +++ b/nvim/.config/nvim/fnl/init.fnl @@ -99,6 +99,7 @@ (utils.highlight-add :SignColumn {:bg colors.dark0}) (utils.highlight-add :FloatBorder {:bg colors.dark0_hard}) +(utils.highlight-add :SpecialComment {:fg colors.dark4}) (utils.highlight ["StatusLine" "GalaxyLineInfo" "GalaxySpace" ] {:bg colors.dark1 :fg colors.light0})