Move neovim config and prepare orgmode
This commit is contained in:
parent
b6fb146634
commit
2de4d8c2ff
@ -20,7 +20,7 @@ user:
|
||||
./i3.nix
|
||||
./lsd.nix
|
||||
./man.nix
|
||||
./neovim.nix
|
||||
./neovim/neovim.nix
|
||||
./nextcloud.nix
|
||||
./pasystray.nix
|
||||
./photography.nix
|
||||
|
20
home/neovim/init.lua
Normal file
20
home/neovim/init.lua
Normal file
@ -0,0 +1,20 @@
|
||||
-- init.lua
|
||||
|
||||
-- Load custom tree-sitter grammar for org filetype
|
||||
require('orgmode').setup_ts_grammar()
|
||||
|
||||
-- Tree-sitter configuration
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- If TS highlights are not enabled at all, or disabled via `disable` prop, highlighting will fallback to default Vim syntax highlighting
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {'org'}, -- Remove this to use TS highlighter for some of the highlights (Experimental)
|
||||
additional_vim_regex_highlighting = {'org'}, -- Required since TS highlighter doesn't support all syntax features (conceal)
|
||||
},
|
||||
ensure_installed = {'org'}, -- Or run :TSUpdate org
|
||||
}
|
||||
|
||||
require('orgmode').setup({
|
||||
org_agenda_files = {'~/Nextcloud/org/*'},
|
||||
org_default_notes_file = '~/Nextcloud/org/refile.org',
|
||||
})
|
@ -9,6 +9,9 @@ let
|
||||
coc-pyright
|
||||
coc-go
|
||||
|
||||
# orgmode-nvim
|
||||
# nvim-treesitter
|
||||
|
||||
ctrlp-vim
|
||||
editorconfig-vim
|
||||
vim-gist
|
||||
@ -426,6 +429,9 @@ let
|
||||
|
||||
" let g:tex_flavor = 'latex'
|
||||
'';
|
||||
# lua << EOF
|
||||
# ${builtins.readFile ./init.lua}
|
||||
# EOF
|
||||
};
|
||||
in {
|
||||
# Note that this doesn’t merge deeply, so you couldn’t add to plugins. For that
|
||||
@ -443,7 +449,7 @@ in {
|
||||
};
|
||||
};
|
||||
} // config;
|
||||
programs.vim = config;
|
||||
# programs.vim = config;
|
||||
|
||||
# xdg.configFile."nvim/coc-settings.json".text = builtins.toJSON {
|
||||
# # "go.goplsPath" = "${gopls}/bin/gopls";
|
Loading…
Reference in New Issue
Block a user