summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-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
3 files changed, 15 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
},
},
},