aboutsummaryrefslogtreecommitdiff
path: root/user/home/kakoune/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'user/home/kakoune/default.nix')
-rw-r--r--user/home/kakoune/default.nix75
1 files changed, 0 insertions, 75 deletions
diff --git a/user/home/kakoune/default.nix b/user/home/kakoune/default.nix
deleted file mode 100644
index 5def202..0000000
--- a/user/home/kakoune/default.nix
+++ /dev/null
@@ -1,75 +0,0 @@
-{ config, pkgs, ... }:
-{
- programs.kakoune = {
- enable = true;
- colorSchemePackage = pkgs.kakounePlugins.kakoune-catppuccin;
- config = {
- colorScheme = "catppuccin_mocha";
- hooks = [
- {
- commands = "set window indentwidth 2";
- group = "indentwidth";
- name = "WinSetOption";
- option = "filetype=(nix)";
- }
- {
- commands = "lsp-enable-window";
- name = "WinSetOption";
- option = "filetype=(javascript|kotlin|qml|typescript|zig)";
- }
- {
- commands = ''
- set-option buffer lsp_servers %{
- [kotlin-language-server]
- root_globs = ["build.gradle.kts"]
- }
- '';
- name = "BufSetOption";
- option = "filetype=kotlin";
- }
- {
- commands = ''
- set-option buffer lsp_servers %{
- [qmlls]
- root_globs = ["shell.qml"]
- }
- '';
- name = "BufSetOption";
- option = "filetype=qml";
- }
- ];
-
- keyMappings = [
- {
- docstring = "Opens a new editor window";
- effect = ":new<ret>";
- key = "<c-w>";
- mode = "normal";
- }
- ];
-
- numberLines = {
- enable = true;
- highlightCursor = true;
- };
-
- ui = {
- assistant = "cat";
- setTitle = true;
- };
- };
-
- defaultEditor = true;
- extraConfig = builtins.readFile ./kakrc;
- plugins = with pkgs.kakounePlugins; [
- auto-pairs-kak
- kakoune-extra-filetypes
- kakoune-lsp
- ];
- };
-
- xdg.configFile."kak/colors" = {
- recursive = true;
- source = ./colors;
- };
-}