dev environment work, moved to alacritty, matrix logging change

This commit is contained in:
kat witch 2021-09-12 04:52:31 +01:00
parent 43f828b99a
commit 8b19689060
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
9 changed files with 63 additions and 33 deletions

View file

@ -16,10 +16,12 @@ let
};
in
{
home.packages = [ doom-emacs pkgs.sqlite ];
config = mkIf ((builtins.getEnv "CI_ENV") != "") {
home.packages = [ doom-emacs pkgs.sqlite ];
home.file.".emacs.d/init.el".text = ''
(load "default.el")
(load-theme 'base16-${lib.elemAt (lib.splitString "." config.base16.alias.default) 1} t)
'';
home.file.".emacs.d/init.el".text = ''
(load "default.el")
(load-theme 'base16-${lib.elemAt (lib.splitString "." config.base16.alias.default) 1} t)
'';
};
}

View file

@ -1,5 +1,4 @@
{ ... }: {
excludes = [
"emacs"
];
}

View file

@ -39,8 +39,14 @@ in
'';
plugins = with pkgs.vimPlugins; [
neorg
nvim-cmp
plenary-nvim
nvim-base16
nvim-treesitter
nvim-web-devicons
telescope-nvim
(nvim-treesitter.withPlugins (
plugins: with plugins; pkgs.tree-sitter.allGrammars
))
nvim-ts-rainbow
coc-yaml
coc-git

View file

@ -1,6 +1,21 @@
lua << EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
local cmp = require'cmp'
cmp.setup({
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
mapping = {
['<C-y>'] = cmp.mapping.confirm({ select = true }),
},
sources = {
{ name = 'neorg' },
}
})
require('nvim-treesitter.configs').setup {
ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
ignore_install = { }, -- List of parsers to ignore installing
highlight = {
enable = true,
@ -22,11 +37,17 @@ require'nvim-treesitter.configs'.setup {
["core.norg.concealer"] = {}, -- Allows for use of icons
["core.norg.dirman"] = { -- Manage your directories with Neorg
config = {
engine = "nvim-cmp",
workspaces = {
my_workspace = "~/neorg"
home = "~/neorg"
}
}
}
},
}
EOF
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>