Nim setup

master
Wynd 2024-09-01 00:44:34 +03:00
parent 63ae7cb736
commit 1cc407dbb2
5 changed files with 10 additions and 2 deletions

View File

@ -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" },

View File

@ -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" }, "<leader>d", '"_d')
-- filthy casual save keybind

View File

@ -87,6 +87,11 @@ return {
capabilities = capabilities,
})
-- Nim
lspconfig.nim_langserver.setup({
capabilities = capabilities,
})
-- Bash
lspconfig.bashls.setup({
capabilities = capabilities,

View File

@ -34,6 +34,7 @@ return {
"rust",
"python",
"zig",
"nim",
"bash",
-- the not so cool stuff

1
.zshrc
View File

@ -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"