summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-18 09:33:28 +0200
committerKyren223 <Kyren223@proton.me>2025-01-18 09:33:28 +0200
commitb971f4a7693cd17c541693a8598ce1e2753d33da (patch)
treeb31349ddb57d6b4a8497330ef53b7f41b91d9140
parentddd0f1552e4826ff2b1e6539199c23638889d3f8 (diff)
Added asm-lsp and gdb
-rw-r--r--.config/nvim/after/ftplugin/asm.lua5
-rw-r--r--.config/nvim/lua/custom/config/language-servers.lua4
-rw-r--r--.config/nvim/lua/custom/plugins/mason.lua12
-rw-r--r--hosts/kyren-laptop/home.nix2
4 files changed, 17 insertions, 6 deletions
diff --git a/.config/nvim/after/ftplugin/asm.lua b/.config/nvim/after/ftplugin/asm.lua
new file mode 100644
index 0000000..e20fbe1
--- /dev/null
+++ b/.config/nvim/after/ftplugin/asm.lua
@@ -0,0 +1,5 @@
+Event = 'VeryLazy'
+
+vim.opt_local.tabstop = 2 -- number of visual spaces per TAB
+vim.opt_local.softtabstop = 2 -- number of idfk tab when editing
+vim.opt_local.shiftwidth = 2 -- number of spaces to insert on tab
diff --git a/.config/nvim/lua/custom/config/language-servers.lua b/.config/nvim/lua/custom/config/language-servers.lua
index d3e71ce..02754f1 100644
--- a/.config/nvim/lua/custom/config/language-servers.lua
+++ b/.config/nvim/lua/custom/config/language-servers.lua
@@ -154,4 +154,8 @@ return {
-- },
-- },
-- },
+ asm_lsp = {
+ mason = false,
+ cmd = { 'asm-lsp' },
+ },
}
diff --git a/.config/nvim/lua/custom/plugins/mason.lua b/.config/nvim/lua/custom/plugins/mason.lua
index 43e1557..9bbb01b 100644
--- a/.config/nvim/lua/custom/plugins/mason.lua
+++ b/.config/nvim/lua/custom/plugins/mason.lua
@@ -24,14 +24,14 @@ return {
-- 'black', -- python formatter
-- 'isort', -- python formatter for imports
-- 'flake8', -- python linter
- 'gofumpt', -- go formatter
+ 'gofumpt', -- go formatter
'golangci-lint', -- go linter
- 'prettierd', -- multi-lang formatter
- 'prettier', -- prettierd but slower, used as a fallback
- 'jq', -- json formatter
- 'jsonlint', -- json linter
+ 'prettierd', -- multi-lang formatter
+ 'prettier', -- prettierd but slower, used as a fallback
+ 'jq', -- json formatter
+ 'jsonlint', -- json linter
'shellcheck', -- bash linter
- 'beautysh', -- shell formatter
+ 'beautysh', -- shell formatter
},
},
},
diff --git a/hosts/kyren-laptop/home.nix b/hosts/kyren-laptop/home.nix
index f1cccda..0d9db8d 100644
--- a/hosts/kyren-laptop/home.nix
+++ b/hosts/kyren-laptop/home.nix
@@ -87,6 +87,8 @@
activitywatch
awatcher
albert
+ gdb
+ asm-lsp
];
# For nixd LSP to recognize what nixpkgs version I use