~toastal/nvim-tree-sitter-unicode-conceal

Showing details for patch 6c1ac5ec1c6e4c30a984fb48334b57c23fb121e8.
2024-01-19 (Fri), 10:18 AM - toastal - 6c1ac5ec1c6e4c30a984fb48334b57c23fb121e8

more neovim plugins & settings

Summary of changes
1 files modified with 39 lines added and 0 lines removed
  • flake.nix with 39 added and 0 removed lines
diff -rN -u old-nvim-tree-sitter-unicode-conceal/flake.nix new-nvim-tree-sitter-unicode-conceal/flake.nix
--- old-nvim-tree-sitter-unicode-conceal/flake.nix	2024-11-24 23:01:18.979716784 +0000
+++ new-nvim-tree-sitter-unicode-conceal/flake.nix	2024-11-24 23:01:18.979716784 +0000
@@ -60,6 +60,8 @@
             configure = {
               packages.myPlugins = with pkgs.vimPlugins; {
                 start = [
+                  lsp_lines-nvim
+                  trouble-nvim
                   (nvim-treesitter.withPlugins (
                     plugins: with plugins; [
                       fish
@@ -79,6 +81,8 @@
                 set tabstop=4
                 set shiftwidth=4
                 set conceallevel=2
+                let mapleader=' '
+                let maplocalleader='-'
 
                 autocmd BufNewFile,BufRead *.ncl setfiletype nickel
                 autocmd BufNewFile,BufRead *.nix setfiletype nix
@@ -89,6 +93,41 @@
                     enable = true,
                   },
                 })
+                require("lsp_lines").setup()
+                require("trouble").setup({
+                  height = 9,
+                  fold_open = "▶",
+                  fold_close = "▼",
+                  padding = false,
+                  auto_close = true,
+                  signs = {
+                    error = "☠",
+                    warning = "‼",
+                    hint = "✽",
+                    information = "ℹ",
+                    other = "⁇",
+                  },
+                  use_diagnostic_signs = true,
+                })
+
+                vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>",
+                  {silent = true, noremap = true}
+                )
+                vim.keymap.set("n", "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>",
+                  {silent = true, noremap = true}
+                )
+                vim.keymap.set("n", "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>",
+                  {silent = true, noremap = true}
+                )
+                vim.keymap.set("n", "<leader>xl", "<cmd>TroubleToggle loclist<cr>",
+                  {silent = true, noremap = true}
+                )
+                vim.keymap.set("n", "<leader>xq", "<cmd>TroubleToggle quickfix<cr>",
+                  {silent = true, noremap = true}
+                )
+                vim.keymap.set("n", "gR", "<cmd>TroubleToggle lsp_references<cr>",
+                  {silent = true, noremap = true}
+                )
                 EOF
               '';
             };