Prechádzať zdrojové kódy

Most recent changes including better lsp context handling (no auto complete on esc)

Don Duvall 1 rok pred
rodič
commit
a2f17071af

+ 1 - 1
lazyvim.json

@@ -5,5 +5,5 @@
   "news": {
   "news": {
     "NEWS.md": "2123"
     "NEWS.md": "2123"
   },
   },
-  "version": 1
+  "version": 2
 }
 }

+ 6 - 1
lua/config/lazy.lua

@@ -26,7 +26,12 @@ require("lazy").setup({
     version = false, -- always use the latest git commit
     version = false, -- always use the latest git commit
     -- version = "*", -- try installing the latest stable version for plugins that support semver
     -- version = "*", -- try installing the latest stable version for plugins that support semver
   },
   },
-  install = { colorscheme = { "tokyonight", "habamax" } },
+  install = { 
+    colorscheme = {
+      "tokyonight",
+      "habamax" 
+    },
+  },
   checker = { enabled = true }, -- automatically check for plugin updates
   checker = { enabled = true }, -- automatically check for plugin updates
   performance = {
   performance = {
     rtp = {
     rtp = {

+ 4 - 0
lua/config/options.lua

@@ -14,3 +14,7 @@ vim.opt.autoindent = true
 
 
 vim.g.autoformat = false
 vim.g.autoformat = false
 
 
+-- If we are on windows, we want to specify the shell to use powershell
+if vim.fn.has("win32") == 1 then
+    vim.opt.shell = "powershell.exe"
+end

+ 13 - 0
lua/plugins/colorscheme.lua

@@ -0,0 +1,13 @@
+return {
+  -- add gruvbox
+  { "ellisonleao/gruvbox.nvim" },
+  { "tanvirtin/monokai.nvim" },
+
+  -- Configure LazyVim to load gruvbox
+  {
+    "LazyVim/LazyVim",
+    opts = {
+      colorscheme = "monokai",
+    },
+  }
+}

+ 3 - 1
lua/plugins/copilot.lua

@@ -4,7 +4,7 @@ return {
         cmd = "Copilot",
         cmd = "Copilot",
         build = ":Copilot auth",
         build = ":Copilot auth",
         opts = {
         opts = {
-            suggestion = { enabled = false },
+            suggestion = { enabled = true, auto_trigger = true },
             panel = { enabled = false },
             panel = { enabled = false },
             filetypes = { ["*"] = true },
             filetypes = { ["*"] = true },
         },
         },
@@ -25,4 +25,6 @@ return {
             end)
             end)
         end,
         end,
     }
     }
+
+
 }
 }

+ 4 - 0
lua/plugins/disabled.lua

@@ -0,0 +1,4 @@
+return {
+	{ "echasnovski/mini.pairs",
+	  enabled = false },
+}

+ 11 - 16
lua/plugins/lspconfig.lua

@@ -1,19 +1,14 @@
 return {
 return {
-  "neovim/nvim-lspconfig",
-  ---@class PluginLspOpts
-  opts = {
-    ---@type lspconfig.options
-    --autoformat = false,
-    servers = {
-      -- pyright will be automatically installed with mason and loaded with lspconfig
-      pyright = {},
-      intelephense = {
-        --          settings = {
-        --            intelephense = {
-        --              files = {}
-        --            }
-        --          }
-      },
+    "neovim/nvim-lspconfig",
+    ---@class PluginLspOpts
+    opts = {
+        ---@type lspconfig.options
+        --autoformat = false,
+        servers = {
+            -- pyright will be automatically installed with mason and loaded with lspconfig
+            pyright = {},
+            intelephense = {},
+            gopls = {},
+        },
     },
     },
-  },
 }
 }