]> git.huck.website - nvim.git/commitdiff
edited: removed extraneous comments and keybinds
authorHuck Boles <huck@huck.website>
Thu, 29 Jun 2023 14:39:53 +0000 (09:39 -0500)
committerHuck Boles <huck@huck.website>
Thu, 29 Jun 2023 14:39:53 +0000 (09:39 -0500)
lua/plugins/lsp.lua
lua/plugins/treesitter.lua

index 49b3f63f936bee472694727bbe464039d5560f6d..22ceeaedab4e2a48f1ce72d0376b1b92aff8dce2 100644 (file)
@@ -78,44 +78,6 @@ return {
         config = function()
             -- servers to setup
             local lsp = require("lspconfig")
-            -- lsp.rust_analyzer.setup({
-            --     settings = {
-            --         ['rust-analyzer'] = {
-            --             completion = {
-            --                 privateEditable = true,
-            --                 completionItem = {
-            --                     preselectSupport = true,
-            --                     snippetSupport = true,
-            --                 }
-            --             },
-            --             hover = {
-            --                 actions = {
-            --                     enable = true,
-            --                     references = true,
-            --                 }
-            --             },
-            --             imports = {
-            --                 granularity = {
-            --                     enforce = true,
-            --                 },
-            --                 group = true,
-            --                 prefix = "self",
-            --             },
-            --             inlayHints = {
-            --                 closureCaptureHints       = true,
-            --                 closureReturnTypeHints    = true,
-            --                 lifetimeElisionHints      = true,
-            --                 discriminantHints         = true,
-            --                 expressionAdjustmentHints = { enable = true, mode = "postfix" },
-            --                 closingBraceHints         = { enable = true, minLines = 1 },
-            --             },
-            --             highlightRelated = { enable = true },
-            --             magicCompletions = { enable = true },
-            --             procMacro = {
-            --                 enable = true
-            --             } }
-            --     }
-            -- })
             lsp.awk_ls.setup({})
             lsp.bashls.setup({})
             lsp.clangd.setup({})
index 74384bc11b45b191ddcc21acb7c22f93c1fae309..41eddd8ec8421fc25fd870b7cf08eefbcce5d940 100644 (file)
@@ -40,14 +40,12 @@ return {
                             ["if"] = "@function.inner",
                             ["ac"] = "@comment.outer",
                             ["ic"] = "@comment.inner",
-                            ["aC"] = "@class.outer",
-                            ["iC"] = "@class.inner",
+                            ["aC"] = "@conditional.outer",
+                            ["iC"] = "@conditional.inner",
                             ["al"] = "@loop.outer",
                             ["il"] = "@loop.inner",
-                            ["an"] = "@number.outer",
-                            ["in"] = "@number.inner",
-                            ["av"] = "@parameter.outer",
-                            ["iv"] = "@parameter.inner",
+                            ["ab"] = "@block.outer",
+                            ["ib"] = "@block.inner",
                         }
                     }
                 }