diff options
| author | ericmarin <maarin.eric@gmail.com> | 2026-04-29 21:12:05 +0200 |
|---|---|---|
| committer | ericmarin <maarin.eric@gmail.com> | 2026-07-27 15:55:03 +0200 |
| commit | 5a75ed84af8e58db80f3687e8f5237dee9876485 (patch) | |
| tree | 6b2fba6a3d5cb34ff647499185e12887658df24f /nvim/lua/plugins | |
| parent | 4373c2db3d54802735105bc3ca602214d94b9f16 (diff) | |
| download | dotfiles-master.tar.gz dotfiles-master.zip | |
Diffstat (limited to '')
| -rw-r--r-- | nvim/lua/plugins/indent-blankline.lua | 26 | ||||
| -rw-r--r-- | nvim/lua/plugins/nvim-lspconfig.lua | 21 | ||||
| -rw-r--r-- | nvim/lua/plugins/nvim-parinfer.lua | 5 | ||||
| -rw-r--r-- | nvim/lua/plugins/parinfer-rust.lua | 6 | ||||
| -rw-r--r-- | nvim/lua/plugins/toggleterm.lua | 10 |
5 files changed, 41 insertions, 27 deletions
diff --git a/nvim/lua/plugins/indent-blankline.lua b/nvim/lua/plugins/indent-blankline.lua index 06298a0..af9cff8 100644 --- a/nvim/lua/plugins/indent-blankline.lua +++ b/nvim/lua/plugins/indent-blankline.lua @@ -1,14 +1,16 @@ return { - "lukas-reineke/indent-blankline.nvim", - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - main = "ibl", - opts = { - exclude = { - filetypes = { - "dashboard", - "norg" - }, - }, - }, + "lukas-reineke/indent-blankline.nvim", + lazy = true, + event = { "BufReadPost", "BufWritePost", "BufNewFile" }, + main = "ibl", + ---@module "ibl" + ---@type ibl.config + opts = { + exclude = { + filetypes = { + "dashboard", + "norg" + }, + }, + }, } diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua index e464144..4c69816 100644 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ b/nvim/lua/plugins/nvim-lspconfig.lua @@ -3,11 +3,22 @@ local config = function() local capabilities = require("cmp_nvim_lsp").default_capabilities() -- setting custom signs - local signs = { Error = "", Warn = "", Hint = "", Info = "" } - for type, icon in pairs(signs) do - local hl = "DiagnosticSign" .. type - vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" }) - end + vim.diagnostic.config({ + signs = { + text = { + [vim.diagnostic.severity.ERROR] = '', + [vim.diagnostic.severity.WARN] = '', + [vim.diagnostic.severity.HINT] = '', + [vim.diagnostic.severity.INFO] = '', + }, + linehl = { + [vim.diagnostic.severity.ERROR] = 'ErrorMsg', + }, + numhl = { + [vim.diagnostic.severity.WARN] = 'WarningMsg', + }, + }, + }) vim.api.nvim_create_autocmd('LspAttach', { callback = function(ev) diff --git a/nvim/lua/plugins/nvim-parinfer.lua b/nvim/lua/plugins/nvim-parinfer.lua deleted file mode 100644 index 8775f83..0000000 --- a/nvim/lua/plugins/nvim-parinfer.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "gpanders/nvim-parinfer", - lazy = true, - ft = "lisp" -} diff --git a/nvim/lua/plugins/parinfer-rust.lua b/nvim/lua/plugins/parinfer-rust.lua new file mode 100644 index 0000000..2b31d8a --- /dev/null +++ b/nvim/lua/plugins/parinfer-rust.lua @@ -0,0 +1,6 @@ +return { + "eraserhd/parinfer-rust", + build = "cargo build --release", + lazy = true, + ft = { "scheme", "lisp" } +} diff --git a/nvim/lua/plugins/toggleterm.lua b/nvim/lua/plugins/toggleterm.lua index 902cf4b..9bd1b78 100644 --- a/nvim/lua/plugins/toggleterm.lua +++ b/nvim/lua/plugins/toggleterm.lua @@ -1,17 +1,17 @@ local init = function() local keymap = vim.keymap - keymap.set("n", "<C-t>", ":ToggleTerm<Enter>", + --[[ keymap.set("n", "<C-t>", ":ToggleTerm<Enter>", { noremap = true, silent = true, desc = "Terminal (ToggleTerm)" }) -- Terminal - keymap.set("t", "<C-t>", "<C-\\><C-n>:ToggleTerm<Enter>") + keymap.set("t", "<C-t>", "<C-\\><C-n>:ToggleTerm<Enter>") ]] keymap.set("n", "<Space>g", ":ToggleLazyGit<Enter>", { noremap = true, silent = true, desc = "LazyGit (ToggleTerm)" }) -- LazyGit end local config = function() - require("toggleterm").setup { + --[[ require("toggleterm").setup { autochdir = false, direction = "float", - open_mapping = [[<c-t>]], + open_mapping = "<c-t>", terminal_mappings = true, start_in_insert = true, float_opts = { @@ -24,7 +24,7 @@ local config = function() term.dir = cwd end end, - } + } ]] local Terminal = require("toggleterm.terminal").Terminal local opts = { noremap = true, -- non-recursive |
