diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-16 01:20:48 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-16 01:20:48 +0100 |
commit | e6b577799965acd039ddfa88b3c3fd912d192365 (patch) | |
tree | 8fc3d330e3d2f32a29299b74184412a4c2814b2e | |
parent | 8c49afa20b3afcc1c78558a7c7f77c57673bba8e (diff) |
checkpoint
-rw-r--r-- | after/ftplugin/c.lua | 2 | ||||
-rw-r--r-- | after/plugin/gitsigns.lua | 2 | ||||
-rw-r--r-- | lua/config/lsp.lua | 31 |
3 files changed, 17 insertions, 18 deletions
diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua index 864a22a..af85156 100644 --- a/after/ftplugin/c.lua +++ b/after/ftplugin/c.lua @@ -23,6 +23,6 @@ vim.opt.commentstring = "// %s" -- disable indent in switch statement vim.opt.cinoptions = "l1" -vim.bo.makeprg = "gccg " .. vim.fn.expand("%") +vim.bo.makeprg = "./build.sh" vim.cmd("TSDisable indent") diff --git a/after/plugin/gitsigns.lua b/after/plugin/gitsigns.lua index 87dd7f4..46536b1 100644 --- a/after/plugin/gitsigns.lua +++ b/after/plugin/gitsigns.lua @@ -11,7 +11,7 @@ gitsigns.setup({ numhl = false, attach_to_untracked = true, update_debounce = 0, - on_attach = function(buffer) + on_attach = function() local map = vim.keymap.set -- stylua: ignore start map("n", "]g", gitsigns.next_hunk, { desc = "Next git hunk" }) diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 888143b..7b52c79 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -2,7 +2,6 @@ local diagnostic = vim.diagnostic local lbuf = vim.lsp.buf local map = vim.keymap.set -local lspconfig = require("lspconfig") local builtin = require("telescope.builtin") map("n", " <cr>", lbuf.code_action, { desc = "Code actions" }) @@ -33,19 +32,19 @@ map("n", " vf", diagnostic.open_float, { desc = "Diagnostics open floating windo -- [[ LSP Setups ]] -- lspconfig.gopls.setup({ - -- settings = { - -- gopls = { - -- hints = { - -- assignVariableTypes = true, - -- compositeLiteralFields = true, - -- compositeLiteralTypes = true, - -- constantValues = true, - -- functionTypeParameters = true, - -- parameterNames = true, - -- rangeVariableTypes = true, - -- }, - -- }, - -- }, +-- settings = { +-- gopls = { +-- hints = { +-- assignVariableTypes = true, +-- compositeLiteralFields = true, +-- compositeLiteralTypes = true, +-- constantValues = true, +-- functionTypeParameters = true, +-- parameterNames = true, +-- rangeVariableTypes = true, +-- }, +-- }, +-- }, -- }) -- lspconfig.clangd.setup({}) -- lspconfig.emmet_ls.setup({}) @@ -56,7 +55,8 @@ map("n", " vf", diagnostic.open_float, { desc = "Diagnostics open floating windo -- "-NoLog", -- "-NoProfile", -- "-Command", --- "/home/aluc/.local/share/nvim/mason/packages/powershell-editor-services/PowerShellEditorServices/Start-EditorServices.ps1", +-- "/home/aluc/.local/share/nvim/mason/packages/" .. +-- "powershell-editor-services/PowerShellEditorServices/Start-EditorServices.ps1", -- }, -- }) -- lspconfig.lua_ls.setup({ @@ -112,7 +112,6 @@ autocmd("LspAttach", { local ls = require("luasnip") -local map = vim.keymap.set local parse_snippet = ls.parser.parse_snippet map({ "i", "s" }, "<C-h>", function() |