From 91f8147acb466f2d5f188cc13d22eaac08d46c31 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Tue, 1 Aug 2023 13:53:26 +0200 Subject: this doesn't even work properly --- nvim/lua/kkard2/lazy/lsp.lua | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/nvim/lua/kkard2/lazy/lsp.lua b/nvim/lua/kkard2/lazy/lsp.lua index 08d22d1..a4d24ad 100644 --- a/nvim/lua/kkard2/lazy/lsp.lua +++ b/nvim/lua/kkard2/lazy/lsp.lua @@ -1,3 +1,43 @@ +-- WARNING: BAD CODE AHEAD +-- look at your own risk +local function rename_file() + local source_file, target_file + + vim.ui.input({ + prompt = "Source : ", + completion = "file", + default = vim.api.nvim_buf_get_name(0) + }, + function(input) + source_file = input + end + ) + vim.ui.input({ + prompt = "Target : ", + completion = "file", + default = source_file + }, + function(input) + target_file = input + end + ) + + local params = { + command = "_typescript.applyRenameFile", + arguments = { + { + sourceUri = source_file, + targetUri = target_file, + }, + }, + title = "" + } + + vim.lsp.util.rename(source_file, target_file) + vim.lsp.buf.execute_command(params) +end +-- END OF WARNING + return function() local lsp = require("lsp-zero").preset({}) @@ -16,4 +56,17 @@ return function() vim.keymap.set("n", "lr", vim.lsp.buf.rename) vim.keymap.set("n", "", vim.lsp.buf.code_action) vim.keymap.set("n", "lf", vim.lsp.buf.format) + + + + -- temp + require("lspconfig").tsserver.setup({ + commands = { + RenameFile = { + rename_file, + description = "Rename File" + }, + } + }) + -- end temp end -- cgit v1.3.1 From 066aab7d5f9fc3b2977cd631367eac6b97a0b3bf Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 7 Aug 2023 15:32:25 +0200 Subject: i love vim --- nvim/lua/kkard2/remap.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/lua/kkard2/remap.lua b/nvim/lua/kkard2/remap.lua index fda1ace..f5436da 100644 --- a/nvim/lua/kkard2/remap.lua +++ b/nvim/lua/kkard2/remap.lua @@ -28,3 +28,7 @@ vim.keymap.set("n", "", function() vim.cmd(":q") end end) + +-- lmao +vim.keymap.set("i", "", "k0ywj0\"_d$pa") +vim.keymap.set("n", "", "xif ") -- cgit v1.3.1 From 4ee6511ba0535531b9c8b9b726c639dc6898b2b7 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 7 Aug 2023 15:47:42 +0200 Subject: it gets better --- nvim/lua/kkard2/remap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/kkard2/remap.lua b/nvim/lua/kkard2/remap.lua index f5436da..8a9349a 100644 --- a/nvim/lua/kkard2/remap.lua +++ b/nvim/lua/kkard2/remap.lua @@ -30,5 +30,5 @@ vim.keymap.set("n", "", function() end) -- lmao -vim.keymap.set("i", "", "k0ywj0\"_d$pa") +vim.keymap.set("i", "", "?.noh0yw0\"_d$pa") vim.keymap.set("n", "", "xif ") -- cgit v1.3.1 From 34cf2460785ac49dec03132161b866ccfa0f763f Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 7 Aug 2023 17:08:26 +0200 Subject: fix non-empty line --- nvim/lua/kkard2/remap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/kkard2/remap.lua b/nvim/lua/kkard2/remap.lua index 8a9349a..cd9aba2 100644 --- a/nvim/lua/kkard2/remap.lua +++ b/nvim/lua/kkard2/remap.lua @@ -30,5 +30,5 @@ vim.keymap.set("n", "", function() end) -- lmao -vim.keymap.set("i", "", "?.noh0yw0\"_d$pa") +vim.keymap.set("i", "", "0d$?.noh0yw0\"_d$pa") vim.keymap.set("n", "", "xif ") -- cgit v1.3.1 From 628b258500a14ef22e6b01f1fb41b677923f1d05 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 7 Aug 2023 19:24:17 +0200 Subject: websites or sth, idk i'm not a web developer --- nvim/after/ftplugin/css.lua | 3 +++ nvim/after/ftplugin/html.lua | 3 +++ nvim/lazy-lock.json | 10 +++++----- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 nvim/after/ftplugin/css.lua create mode 100644 nvim/after/ftplugin/html.lua diff --git a/nvim/after/ftplugin/css.lua b/nvim/after/ftplugin/css.lua new file mode 100644 index 0000000..ed7f6bb --- /dev/null +++ b/nvim/after/ftplugin/css.lua @@ -0,0 +1,3 @@ +vim.opt.tabstop = 2 +vim.opt.softtabstop = 2 +vim.opt.shiftwidth = 2 diff --git a/nvim/after/ftplugin/html.lua b/nvim/after/ftplugin/html.lua new file mode 100644 index 0000000..ed7f6bb --- /dev/null +++ b/nvim/after/ftplugin/html.lua @@ -0,0 +1,3 @@ +vim.opt.tabstop = 2 +vim.opt.softtabstop = 2 +vim.opt.shiftwidth = 2 diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 09538a3..ef809e8 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,17 +1,17 @@ { - "LuaSnip": { "branch": "master", "commit": "e81cbe6004051c390721d8570a4a0541ceb0df10" }, + "LuaSnip": { "branch": "master", "commit": "99a94cc35ec99bf06263d0346128e908a204575c" }, "catppuccin": { "branch": "main", "commit": "057c34f849cf21059487d849e2f3b3efcd4ee0eb" }, "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, - "copilot.vim": { "branch": "release", "commit": "a4a6d6b3f9e284e7f5c849619e06cd228cad8abd" }, + "copilot.vim": { "branch": "release", "commit": "4a361e8cf327590d51d214c5c01c6391727390d7" }, "lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" }, "lsp-zero.nvim": { "branch": "v2.x", "commit": "73bc33fe9ad5a1d4501536fdd4755b3aa18c3392" }, - "lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" }, + "lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "e86a4c84ff35240639643ffed56ee1c4d55f538e" }, "mason.nvim": { "branch": "main", "commit": "fe9e34a9ab4d64321cdc3ecab4ea1809239bb73f" }, "mini.trailspace": { "branch": "main", "commit": "c41ab1035d184ff20c1aebd76639320c055afebe" }, "nvim-cmp": { "branch": "main", "commit": "c4e491a87eeacf0408902c32f031d802c7eafce8" }, - "nvim-lspconfig": { "branch": "master", "commit": "b6091272422bb0fbd729f7f5d17a56d37499c54f" }, - "nvim-treesitter": { "branch": "master", "commit": "e8648569d82c7bb46dc511cda9dbec687774461f" }, + "nvim-lspconfig": { "branch": "master", "commit": "c0de180ddb3df36feef8ac3607670894d0e7497f" }, + "nvim-treesitter": { "branch": "master", "commit": "8d5e5dc40a4c480483690777cefb8cf67e710702" }, "nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" }, "plenary.nvim": { "branch": "master", "commit": "267282a9ce242bbb0c5dc31445b6d353bed978bb" }, "telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" }, -- cgit v1.3.1 From 816fe82b00769e7cb2890349cb6c31d9706da9a5 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Tue, 8 Aug 2023 22:28:43 +0200 Subject: i always wanted to try that --- nvim/lazy-lock.json | 12 +++++++----- nvim/lua/kkard2/lazy.lua | 6 ++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index ef809e8..2dd8605 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,19 +1,21 @@ { - "LuaSnip": { "branch": "master", "commit": "99a94cc35ec99bf06263d0346128e908a204575c" }, + "LuaSnip": { "branch": "master", "commit": "e81cbe6004051c390721d8570a4a0541ceb0df10" }, "catppuccin": { "branch": "main", "commit": "057c34f849cf21059487d849e2f3b3efcd4ee0eb" }, "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, - "copilot.vim": { "branch": "release", "commit": "4a361e8cf327590d51d214c5c01c6391727390d7" }, + "copilot.vim": { "branch": "release", "commit": "a4a6d6b3f9e284e7f5c849619e06cd228cad8abd" }, "lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" }, "lsp-zero.nvim": { "branch": "v2.x", "commit": "73bc33fe9ad5a1d4501536fdd4755b3aa18c3392" }, - "lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" }, + "lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "e86a4c84ff35240639643ffed56ee1c4d55f538e" }, "mason.nvim": { "branch": "main", "commit": "fe9e34a9ab4d64321cdc3ecab4ea1809239bb73f" }, "mini.trailspace": { "branch": "main", "commit": "c41ab1035d184ff20c1aebd76639320c055afebe" }, "nvim-cmp": { "branch": "main", "commit": "c4e491a87eeacf0408902c32f031d802c7eafce8" }, - "nvim-lspconfig": { "branch": "master", "commit": "c0de180ddb3df36feef8ac3607670894d0e7497f" }, - "nvim-treesitter": { "branch": "master", "commit": "8d5e5dc40a4c480483690777cefb8cf67e710702" }, + "nvim-lspconfig": { "branch": "master", "commit": "b6091272422bb0fbd729f7f5d17a56d37499c54f" }, + "nvim-treesitter": { "branch": "master", "commit": "e8648569d82c7bb46dc511cda9dbec687774461f" }, "nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" }, "plenary.nvim": { "branch": "master", "commit": "267282a9ce242bbb0c5dc31445b6d353bed978bb" }, + "repeat": { "branch": "master", "commit": "24afe922e6a05891756ecf331f39a1f6743d3d5a" }, + "surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" }, "telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" }, "trouble.nvim": { "branch": "main", "commit": "40aad004f53ae1d1ba91bcc5c29d59f07c5f01d3" }, "undotree": { "branch": "master", "commit": "0e11ba7325efbbb3f3bebe06213afa3e7ec75131" } diff --git a/nvim/lua/kkard2/lazy.lua b/nvim/lua/kkard2/lazy.lua index 4a436a4..7bb26ce 100644 --- a/nvim/lua/kkard2/lazy.lua +++ b/nvim/lua/kkard2/lazy.lua @@ -94,4 +94,10 @@ require("lazy").setup({ lazy = false, "github/copilot.vim", }, + { + "https://tpope.io/vim/repeat.git", + }, + { + "https://tpope.io/vim/surround.git", + }, }) -- cgit v1.3.1 From f92d5278f996ed0389ce33aaf415f3bf4620bb25 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Tue, 8 Aug 2023 22:32:57 +0200 Subject: apparently i don't know how lazy.nvim works --- nvim/lua/kkard2/lazy.lua | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/nvim/lua/kkard2/lazy.lua b/nvim/lua/kkard2/lazy.lua index 7bb26ce..e4029ef 100644 --- a/nvim/lua/kkard2/lazy.lua +++ b/nvim/lua/kkard2/lazy.lua @@ -17,12 +17,10 @@ require("lazy").setup({ { "catppuccin/nvim", name = "catppuccin", - lazy = false, config = require("kkard2.lazy.catppuccin"), }, { "nvim-treesitter/nvim-treesitter", - lazy = false, config = require("kkard2.lazy.treesitter"), }, { @@ -33,7 +31,6 @@ require("lazy").setup({ }, { "nvim-lualine/lualine.nvim", - lazy = false, config = function() require("lualine").setup({}) end, }, { @@ -86,18 +83,11 @@ require("lazy").setup({ }, }, { - lazy = false, "echasnovski/mini.trailspace", config = function() require("mini.trailspace").setup() end, }, - { - lazy = false, - "github/copilot.vim", - }, - { - "https://tpope.io/vim/repeat.git", - }, - { - "https://tpope.io/vim/surround.git", - }, + + { "github/copilot.vim" }, + { "https://tpope.io/vim/repeat.git" }, + { "https://tpope.io/vim/surround.git" }, }) -- cgit v1.3.1 From 7f0fd81a27ad51acebba61f2ddd10d21d4f5ca41 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Wed, 9 Aug 2023 12:10:17 +0200 Subject: 😳 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- espanso/match/emoji.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/espanso/match/emoji.yml b/espanso/match/emoji.yml index 07965c8..ccd9a39 100644 --- a/espanso/match/emoji.yml +++ b/espanso/match/emoji.yml @@ -41,3 +41,5 @@ matches: replace: ❤️ - trigger: ;;smirkcat replace: 😼 + - trigger: ;;flush + replace: 😳 -- cgit v1.3.1