configured emacs 😃 and added java lsp to helix 😞
This commit is contained in:
parent
27e09be80f
commit
c08898e5be
|
@ -1,7 +1,37 @@
|
|||
{pkgs, ...}:
|
||||
{
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
# set the package to a dummy package, install with system package manager
|
||||
# specifically use the emacs gtk package
|
||||
package = pkgs.emacs29-pgtk;
|
||||
extraConfig = ''
|
||||
(menu-bar-mode -1)
|
||||
(tool-bar-mode -1)
|
||||
(scroll-bar-mode -1)
|
||||
(load-theme 'catppuccin :no-confirm)
|
||||
(add-to-list 'default-frame-alist
|
||||
'(font . "ComicMono Nerd Font-12"))
|
||||
|
||||
(global-set-key (kbd "C-c a") #'org-agenda)
|
||||
|
||||
(require 'evil)
|
||||
(evil-mode 1)
|
||||
|
||||
(require 'evil-org)
|
||||
(add-hook 'org-mode-hook 'evil-org-mode)
|
||||
(evil-org-set-key-theme '(textobjects insert navigation additional shift todo heading))
|
||||
(require 'evil-org-agenda)
|
||||
(evil-org-agenda-set-keys)
|
||||
(require 'smooth-scrolling)
|
||||
(smooth-scrolling-mode 1)
|
||||
'';
|
||||
extraPackages = epkgs: with epkgs; [
|
||||
base16-theme
|
||||
catppuccin-theme
|
||||
evil
|
||||
evil-org
|
||||
org-download
|
||||
adaptive-wrap
|
||||
smooth-scrolling
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
nil
|
||||
nodePackages.bash-language-server
|
||||
shellcheck
|
||||
java-language-server
|
||||
])
|
||||
];
|
||||
});
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
args = ["-i" "2"];
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
name = "java";
|
||||
language-servers = [ "java-language-server" ];
|
||||
}
|
||||
];
|
||||
language-server = {
|
||||
bash-language-server = {
|
||||
|
@ -42,6 +47,10 @@
|
|||
"--keep-intermediates"
|
||||
];
|
||||
};
|
||||
|
||||
java-language-server = {
|
||||
command = "${pkgs.java-language-server}/bin/java-language-server";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue