emacs update

moved emacs from home-manager packages to system packages
updated config to use tree-sitter and lsp-mode
This commit is contained in:
2021-09-13 06:55:25 +05:30
parent d49f0b473c
commit ddd2ae4efc
11 changed files with 238 additions and 85 deletions

View File

@@ -29,7 +29,7 @@
nvim-tree-lua
vim-vsnip
nvim-treesitter
vim-polyglot
vim-nix
(gruvbox.overrideAttrs (oa: { patches = [ ./gruvbox.patch ]; }))
];
};

View File

@@ -60,10 +60,12 @@ cdhbind('m', 'h')
cdhbind('n', 'j')
cdhbind('e', 'k')
cdhbind('i', 'l')
cdhbind('h', 'i')
cdhbind('j', 'm')
cdhbind('u', 'i')
cdhbind('l', 'u')
cdhbind('k', 'n')
cdhbind('l', 'e')
cdhbind('f', 'e')
cdhbind('t', 'f')
cdhbind('j', 't')
bind('n', "<M-s>", ":w<CR>", {noremap=true})
bind('n', "<M-n>", ":resize -2<CR>", {noremap=true, silent=true})
bind('n', "<M-e>", ":resize +2<CR>", {noremap=true, silent=true})