remove elcord.el + add copilot to neovim

This commit is contained in:
2025-03-14 17:12:25 +01:00
parent 798fdd2596
commit d8ef1ee46b
3 changed files with 34 additions and 3 deletions

View File

@@ -299,6 +299,9 @@ in {
name = "luasnip"; # snippets
keywordLength = 3;
}
{
name = "copilot";
}
];
window = {
@@ -480,6 +483,12 @@ in {
};
markview = { enable = true; };
rainbow-delimiters.enable = true;
copilot-lua.enable = true;
copilot-cmp.enable = true;
copilot-chat.enable = true;
};
extraConfigLua = ''
luasnip = require("luasnip")

View File

@@ -126,8 +126,8 @@
;; (add-hook 'typst-ts-mode-hook #'lsp)
(require 'elcord)
(elcord-mode)
;; (require 'elcord)
;; (elcord-mode)
(map! :leader "pv" #'dirvish)
@@ -148,3 +148,23 @@
(run-with-idle-timer 120 t #'zone)
(defun read-file-to-string (file)
"Read the entire contents of FILE as a string."
(with-temp-buffer
(insert-file-contents file)
(string-trim (buffer-string))))
(setq chatgpt-shell-openai-api-key (read-file-to-string "./secrets/.kagi-api-token"))
(after! lsp-ui
(setq lsp-ui-sideline-enable t
lsp-ui-sideline-show-diagnostics t
lsp-ui-sideline-show-hover nil
lsp-ui-sideline-show-code-actions nil
lsp-ui-sideline-delay 0
lsp-ui-sideline-update-mode 'line)) ;; Force update every line change
(add-hook 'lsp-mode-hook #'lsp-ui-sideline-mode) ;; Ensure it's always on
(after! lsp-mode
(setq lsp-diagnostics-provider :auto)) ;; Ensures LSP is handling errors

View File

@@ -58,7 +58,7 @@
:recipe (:repo "https://github.com/havarddj/typst-preview.el"))
(package! elcord)
;; (package! elcord)
(package! prettier)
@@ -72,3 +72,5 @@
(package! copilot
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")))
(package! chatgpt-shell)