No more emacs! Now that nvim-orgmode is good. & some cleaning

master
Dustin Swan 2 years ago
parent aa91136c43
commit 5c2b4c3d7b
Signed by: dustinswan
GPG Key ID: AB49BD6B2B3A6377

@ -2,14 +2,6 @@
let
secrets = import ./secrets.nix;
doom-emacs = pkgs.callPackage
(builtins.fetchTarball {
url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
})
{
doomPrivateDir = ./doom;
};
in
{
home.packages = with pkgs; [
@ -54,6 +46,7 @@ in
nodePackages.typescript-language-server
nodePackages.stylelint
nodePackages.js-beautify
nodePackages.expo-cli
ocaml
dune_2
ocamlPackages.utop
@ -73,8 +66,6 @@ in
fontconfig
cmigemo
cacert
emacsPackages.fontawesome
emacs-all-the-icons-fonts
ispell
aspell
aspellDicts.en
@ -84,15 +75,13 @@ in
aspellDicts.de
aspellDicts.eo
aspellDicts.es
doom-emacs
code-minimap
];
home.sessionVariables = {
EDITOR = "vim";
BROSWER = "open";
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
PATH = "$PATH:${builtins.getEnv "HOME"}/.emacs.d/bin:${builtins.getEnv "HOME"}/.cargo/bin";
PATH = "$PATH:${builtins.getEnv "HOME"}/.cargo/bin";
EXA_ICON_SPACING = 2;
};
@ -148,7 +137,7 @@ in
enableAutosuggestions = true;
oh-my-zsh = {
enable = true;
plugins = [ "git" "httpie" "aws" "emacs" "fd" "fzf" "mosh" "npm" "ripgrep" "rsync" "sudo" "yarn" ];
plugins = [ "git" "httpie" "aws" "fd" "fzf" "mosh" "npm" "ripgrep" "rsync" "sudo" "yarn" ];
};
shellAliases = {
l = "exa -lah --icons --git";
@ -330,43 +319,4 @@ in
bind-key k up
'';
};
# home.file.gitui = {
# target = ".config/gitui/key_bindings.ron";
# text = ''(
# focus_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
# focus_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)),
# focus_above: Some(( code: Char('k'), modifiers: ( bits: 0,),)),
# focus_below: Some(( code: Char('j'), modifiers: ( bits: 0,),)),
# open_help: Some(( code: F(1), modifiers: ( bits: 0,),)),
# move_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)),
# move_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
# move_up: Some(( code: Char('k'), modifiers: ( bits: 0,),)),
# move_down: Some(( code: Char('j'), modifiers: ( bits: 0,),)),
# popup_up: Some(( code: Char('p'), modifiers: ( bits: 2,),)),
# popup_down: Some(( code: Char('n'), modifiers: ( bits: 2,),)),
# page_up: Some(( code: Char('b'), modifiers: ( bits: 2,),)),
# page_down: Some(( code: Char('f'), modifiers: ( bits: 2,),)),
# home: Some(( code: Char('g'), modifiers: ( bits: 0,),)),
# end: Some(( code: Char('G'), modifiers: ( bits: 1,),)),
# shift_up: Some(( code: Char('K'), modifiers: ( bits: 1,),)),
# shift_down: Some(( code: Char('J'), modifiers: ( bits: 1,),)),
# edit_file: Some(( code: Char('I'), modifiers: ( bits: 1,),)),
# status_reset_item: Some(( code: Char('U'), modifiers: ( bits: 1,),)),
# diff_reset_lines: Some(( code: Char('u'), modifiers: ( bits: 0,),)),
# diff_stage_lines: Some(( code: Char('s'), modifiers: ( bits: 0,),)),
# stashing_save: Some(( code: Char('w'), modifiers: ( bits: 0,),)),
# stashing_toggle_index: Some(( code: Char('m'), modifiers: ( bits: 0,),)),
# stash_open: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
# abort_merge: Some(( code: Char('M'), modifiers: ( bits: 1,),)),
# )'';
# };
}

@ -11,11 +11,13 @@ lvim.builtin.notify.active = true
lvim.builtin.terminal.active = true
lvim.builtin.treesitter.highlight.enabled = true
table.insert(lvim.builtin.cmp.sources, { name = "orgmode" })
lvim.plugins = {
{ "shaunsingh/nord.nvim" },
-- { "rose-pine/neovim" },
-- { "folke/tokyonight.nvim" },
{ 'michaelb/sniprun', run = 'bash ./install.sh' },
{ "nacro90/numb.nvim", event = "BufRead", config = function() require("numb").setup() end },
{ "npxbr/glow.nvim", ft = { "markdown" } },
{ "tpope/vim-repeat" },
@ -28,13 +30,29 @@ lvim.plugins = {
{
"nvim-orgmode/orgmode",
config = function()
require('orgmode').setup{
require('orgmode').setup_ts_grammar()
require('orgmode').setup {
org_agenda_files = {'~/Sync/Notes/*'},
org_default_notes_file = '~/Sync/Notes/Main.org',
-- org_todo_keywords = {'TODO', 'WAIT', '|', 'DONE'},
}
-- vim.opt.conceallevel = 1
end
},
{ "akinsho/org-bullets.nvim",
config = function()
require("org-bullets").setup {
symbols = { "", "", "", "" }
}
vim.opt.conceallevel = 1
end
},
-- {
-- 'lukas-reineke/headlines.nvim',
-- config = function()
-- require('headlines').setup()
-- end,
-- },
{
'rmagatti/goto-preview',
config = function()
@ -79,27 +97,27 @@ lvim.builtin.which_key.mappings["B"] = { "<cmd>BlamerShow<cr>", "Show Blamer" }
-- Org mode stuff
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.org = {
install_info = {
url = 'https://github.com/milisims/tree-sitter-org',
revision = 'f110024d539e676f25b72b7c80b0fd43c34264ef',
files = {'src/parser.c', 'src/scanner.cc'},
},
filetype = 'org',
}
-- local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
-- parser_config.org = {
-- install_info = {
-- url = 'https://github.com/milisims/tree-sitter-org',
-- revision = 'f110024d539e676f25b72b7c80b0fd43c34264ef',
-- files = {'src/parser.c', 'src/scanner.cc'},
-- },
-- filetype = 'org',
-- }
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'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 = {'~/Dropbox/org/*', '~/my-orgs/**/*'},
org_default_notes_file = '~/Dropbox/org/refile.org',
})
-- require('orgmode').setup({
-- org_agenda_files = {'~/Dropbox/org/*', '~/my-orgs/**/*'},
-- org_default_notes_file = '~/Dropbox/org/refile.org',
-- })

Loading…
Cancel
Save