mirror of
https://github.com/fredrikr79/nixos.git
synced 2025-12-24 01:50:20 +01:00
remove elcord.el + add copilot to neovim
This commit is contained in:
9
home.nix
9
home.nix
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user