From 1cc407dbb2ae2b73e97525f10da35b542dfb0bf2 Mon Sep 17 00:00:00 2001 From: Wynd Date: Sun, 1 Sep 2024 00:44:34 +0300 Subject: [PATCH] Nim setup --- .config/nvim/lazy-lock.json | 3 +-- .config/nvim/lua/nvwynd/keymaps.lua | 2 ++ .config/nvim/lua/nvwynd/plugins/lsp.lua | 5 +++++ .config/nvim/lua/nvwynd/plugins/treesitter.lua | 1 + .zshrc | 1 + 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 82c5b7e..047650f 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -18,17 +18,16 @@ "luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" }, "mini.map": { "branch": "main", "commit": "290c3da965196d64f87050a076de9787a136e57a" }, "mini.pairs": { "branch": "main", "commit": "927d19cbdd0e752ab1c7eed87072e71d2cd6ff51" }, + "mini.surround": { "branch": "main", "commit": "d8913ed23be0a1a4585ae34414821cc343a46174" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "29f7c215332ba95e470811c380ddbce2cebe2af4" }, "nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" }, "nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" }, "nvim-lspconfig": { "branch": "master", "commit": "cf97d2485fc3f6d4df1b79a3ea183e24c272215e" }, "nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" }, - "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" }, "nvim-treesitter": { "branch": "master", "commit": "c1ad655b6a0c83ab48e55240f367e2bc0c15af31" }, "nvim-ts-autotag": { "branch": "main", "commit": "323a3e16ed603e2e17b26b1c836d1e86c279f726" }, "nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" }, "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, - "render-markdown.nvim": { "branch": "main", "commit": "72688baea4ef0ed605033bf654b54d801b6a5f01" }, "telescope.nvim": { "branch": "master", "commit": "bfcc7d5c6f12209139f175e6123a7b7de6d9c18a" }, "todo-comments.nvim": { "branch": "main", "commit": "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" }, "trouble.nvim": { "branch": "main", "commit": "4453fea6bb597830fbd58d2c484612f37b97bd8c" }, diff --git a/.config/nvim/lua/nvwynd/keymaps.lua b/.config/nvim/lua/nvwynd/keymaps.lua index 7089140..cdbf32b 100644 --- a/.config/nvim/lua/nvwynd/keymaps.lua +++ b/.config/nvim/lua/nvwynd/keymaps.lua @@ -3,6 +3,8 @@ local map = vim.keymap.set -- generic -- prevents selected text we past over to be moved in a registry and override our paste map("x", "p", '"_dP') +-- prevents the deleted text from going into the registry, use `d` for that +map({ "n", "v", "x" }, "x", '"_d') -- special delete keybind that will not move the deleted selection in a registry map({ "n", "v" }, "d", '"_d') -- filthy casual save keybind diff --git a/.config/nvim/lua/nvwynd/plugins/lsp.lua b/.config/nvim/lua/nvwynd/plugins/lsp.lua index ff813c5..eb6a5ce 100644 --- a/.config/nvim/lua/nvwynd/plugins/lsp.lua +++ b/.config/nvim/lua/nvwynd/plugins/lsp.lua @@ -87,6 +87,11 @@ return { capabilities = capabilities, }) + -- Nim + lspconfig.nim_langserver.setup({ + capabilities = capabilities, + }) + -- Bash lspconfig.bashls.setup({ capabilities = capabilities, diff --git a/.config/nvim/lua/nvwynd/plugins/treesitter.lua b/.config/nvim/lua/nvwynd/plugins/treesitter.lua index 0264486..adae1c2 100644 --- a/.config/nvim/lua/nvwynd/plugins/treesitter.lua +++ b/.config/nvim/lua/nvwynd/plugins/treesitter.lua @@ -34,6 +34,7 @@ return { "rust", "python", "zig", + "nim", "bash", -- the not so cool stuff diff --git a/.zshrc b/.zshrc index 84afa08..c059e75 100644 --- a/.zshrc +++ b/.zshrc @@ -46,6 +46,7 @@ source $HOME/.cargo/env # Ruby setup & setting ~/.gems as default path for gems export GEM_HOME="$HOME/.gems" export PATH="$HOME/.gems/bin:$PATH" +export PATH="$HOME/.nimble/bin:$PATH" # asdf setup source "$HOME/.asdf/asdf.sh"