From e7f3a7bec28f86d362c418c12658d672903223a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 27 Feb 2024 09:01:40 +0100 Subject: Few more nvim updates --- config/nvim/lua/plugins.lua | 97 +++++++++++++++++++++++---------------------- 1 file changed, 50 insertions(+), 47 deletions(-) (limited to 'config/nvim/lua') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index b60f913..fa736e3 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -45,53 +45,56 @@ require("packer").startup(function(use) use("tpope/vim-repeat") use("dhruvasagar/vim-table-mode") --- Indent blanklike character specificaiton -local highlight = { "CursorColumn", "Whitespace" } -require("ibl").setup({ - indent = { highlight = highlight, char = "" }, - whitespace = { - highlight = highlight, - remove_blankline_trail = false, - }, - scope = { enabled = false }, -}) --- Treesitter -require("nvim-treesitter.configs").setup({ - ensure_installed = { - "c", - "lua", - "kconfig", - "make", - "markdown", - "meson", - "ninja", - "ini", - "gitcommit", - "git_rebase", - "git_config", - "nix", - "python", - "toml", - "vim", - "vimdoc", - "yaml", - }, - highlight = { - enable = true, - additional_vim_regex_highlighting = false, - }, -}) + -- Indent blanklike character specificaiton + local highlight = { "CursorColumn", "Whitespace" } + require("ibl").setup({ + indent = { highlight = highlight, char = "" }, + whitespace = { + highlight = highlight, + remove_blankline_trail = false, + }, + scope = { enabled = false }, + }) + -- Treesitter + require("nvim-treesitter.configs").setup({ + ensure_installed = { + "c", + "lua", + "kconfig", + "make", + "markdown", + "markdown_inline", + "meson", + "ninja", + "ini", + "gitcommit", + "git_rebase", + "git_config", + "nix", + "python", + "toml", + "vim", + "vimdoc", + "yaml", + }, + highlight = { + enable = true, + -- TODO why we must set this to true? + additional_vim_regex_highlighting = true, + }, + }) --- LSP -local lspconfig = require("lspconfig") -lspconfig.clangd.setup({}) -lspconfig.rnix.setup({}) -lspconfig.pylsp.setup({}) -lspconfig.bashls.setup({}) + -- LSP + local lspconfig = require("lspconfig") + lspconfig.clangd.setup({}) + lspconfig.rnix.setup({}) + lspconfig.pylsp.setup({}) + lspconfig.bashls.setup({}) --- Telescope -require('mytelescope') + -- Telescope + require("mytelescope") --- Gitlab -require("diffview").setup() -require("gitlab").setup() + -- Gitlab + require("diffview").setup() + require("gitlab").setup() +end) -- cgit v1.2.3