diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/i3/config | 5 | ||||
-rw-r--r-- | .config/nvim/lua/user/coderunner.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/user/lsp/common.lua | 11 | ||||
-rw-r--r-- | .config/nvim/lua/user/plugins.lua | 17 | ||||
-rw-r--r-- | .config/nvim/lua/user/remaps.lua | 7 | ||||
-rw-r--r-- | .config/picom/picom.conf | 17 | ||||
-rw-r--r-- | .config/sakura/sakura.conf | 2 |
7 files changed, 41 insertions, 20 deletions
diff --git a/.config/i3/config b/.config/i3/config index 2399d82..8d87df7 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -265,10 +265,9 @@ bar { status_command i3status position bottom font pango:OverpassM Nerd Font 10 - } -default_border pixel 5 +default_border pixel 0 gaps inner 4 gaps outer 0 @@ -287,7 +286,7 @@ exec openrgb --color "00FFFF" exec $terminal exec $terminal -e bashtop -exec microsoft-edge-dev +exec firefox #exec telegram-desktop #exec discord #exec qtcreator diff --git a/.config/nvim/lua/user/coderunner.lua b/.config/nvim/lua/user/coderunner.lua index 3049893..8dea6b4 100644 --- a/.config/nvim/lua/user/coderunner.lua +++ b/.config/nvim/lua/user/coderunner.lua @@ -6,7 +6,7 @@ require('code_runner').setup({ focus = true, startinsert = true, filetype = { - rust = 'cargo check; if [ \\$? -ne 0 ]; then echo cargo check failed; else cargo run; if [ \\$? -ne 0 ]; then cargo test --test-threads=1; sleep 1; fi; fi; echo $file > /dev/null', + rust = 'cargo check; if [ \\$? -ne 0 ]; then echo cargo check failed; else cargo run || cargo test -- --nocapture --test-threads=1; fi; echo $file > /dev/null', cpp = function() local script = 'echo $file > /dev/null;' .. diff --git a/.config/nvim/lua/user/lsp/common.lua b/.config/nvim/lua/user/lsp/common.lua index 1b1920c..91a663c 100644 --- a/.config/nvim/lua/user/lsp/common.lua +++ b/.config/nvim/lua/user/lsp/common.lua @@ -3,13 +3,14 @@ -- nvim diagnostics setup local define_sign = function(options) - vim.fn.sign_define(options.name, { texthl = options.name, text = options.textm, numhl = '' }) + vim.fn.sign_define(options.name, { texthl = options.name, text = options.text, numhl = options.hl }) end -define_sign({name = "DiagnosticSignError", text = ''}) -define_sign({name = "DiagnosticSignWarn", text = ''}) -define_sign({name = "DiagnosticSignHint", text = ''}) -define_sign({name = "DiagnosticSignInfo", text = ''}) +define_sign({name = "DiagnosticSignError", text = '', hl = 'ErrorMsg'}) +define_sign({name = "DiagnosticSignWarn", text = '', hl = 'IncSearch'}) +define_sign({name = "DiagnosticSignHint", text = '', hl = 'Search'}) +-- define_sign({name = "DiagnosticSignInfo", text = ''}) +vim.fn.sign_define("DiagnosticSignInfo", { texthl="Ignore", text = "", numhl = 'TermCursor' }) vim.diagnostic.config{ virtual_text = true, diff --git a/.config/nvim/lua/user/plugins.lua b/.config/nvim/lua/user/plugins.lua index 94b1035..7b7e31d 100644 --- a/.config/nvim/lua/user/plugins.lua +++ b/.config/nvim/lua/user/plugins.lua @@ -34,9 +34,10 @@ plugins = { "neovim/nvim-lspconfig", -- LSP configuration event = { "InsertEnter" }, }, - { - "simrat39/rust-tools.nvim", + { + "FabijanZulj/blame.nvim", -- git blame integration }, + { "simrat39/rust-tools.nvim" }, -- no commments -- { "hrsh7th/vim-vsnip" }, -- snippet engine @@ -49,16 +50,16 @@ plugins = { event = { "InsertEnter" }, }, { - "rafamadriz/friendly-snippets", -- predefined snippets + "rafamadriz/friendly-snippets", -- predefined snippets event = { "InsertEnter" }, }, { - "CRAG666/code_runner.nvim", + "CRAG666/code_runner.nvim", -- TODO: setup magic filenames to be executed per-project config = true, }, { - "akinsho/toggleterm.nvim", + "akinsho/toggleterm.nvim", -- a terminal, horaaaay config = true, }, @@ -134,4 +135,8 @@ lazy.setup(plugins, opts) -- miscellanous plugin setup require('bufferline').setup{} - +require('blame').setup{ + width = 16, + date_format = "%H:%M:%S %Y-%m-%d", + merge_consecutive = true, +} diff --git a/.config/nvim/lua/user/remaps.lua b/.config/nvim/lua/user/remaps.lua index ad1e2eb..8839890 100644 --- a/.config/nvim/lua/user/remaps.lua +++ b/.config/nvim/lua/user/remaps.lua @@ -72,11 +72,12 @@ map("n", "<leader>pl", ":Lazy<CR>", opt) -- open plugin manager -- Old mappings for the terminal -- map("n", "<leader>t", ":split<CR>:terminal<CR>:resize 4<CR>", opt) -- open terminal fullscreen with \T -- map("n", "<leader>T", ":vsplit<CR>:terminal<CR>", opt) -- split to terminal with \t -map("", "<leader>t", ":ToggleTerm<CR>", opt) -- open ToggleTerm -map("t", "<leader>t", ":ToggleTerm<CR>", opt) -- close ToggleTerm +map("", "<leader>t", "<cmd>ToggleTerm<CR>", opt) +map("t", "<leader>t", "<cmd>ToggleTerm<CR>", opt) -- miscellaneous -map("c", "w!!", "w !sudo tee % > /dev/null", opt) +map("c", "w!!", "w !sudo tee % > /dev/null", opt) -- sudo write +map("n", "gb", "<cmd>ToggleBlame virtual<CR>", opt) -- git blame -- better G and gg map("n", "G", "G$", opt) diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf index c5312b4..9cd87fe 100644 --- a/.config/picom/picom.conf +++ b/.config/picom/picom.conf @@ -1 +1,16 @@ -inactive-opacity = 0.95; +inactive-opacity = 0.90; +fade-in-step = 0.01; +fade-out-step = 0.01; +fade-delta = 16; +fading = true; +no-fading-openclose = true; +corner-radius = 10; +shadow = true; +blur = { + method = "gaussian"; + size = 5; + deviation = 5; +} +wintypes = { + +} diff --git a/.config/sakura/sakura.conf b/.config/sakura/sakura.conf index 47d82b2..0bdf054 100644 --- a/.config/sakura/sakura.conf +++ b/.config/sakura/sakura.conf @@ -32,7 +32,7 @@ colorset6_key=F6 last_colorset=1 bold_is_bright=false scroll_lines=4096 -font=OverpassM Nerd Font 12 +font=OverpassM Nerd Font 14 show_tab_bar=multiple scrollbar=false closebutton=false |