Skip to content

Commit

Permalink
feat(nvim): remove vimwiki
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Sep 7, 2024
1 parent 081f26d commit 37d7ef8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions shell/configs/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@

nvim-treesitter.withAllGrammars

vimwiki
cmp-vimwiki-tags
mattn-calendar-vim

nui-nvim
plenary-nvim
]);
Expand Down
13 changes: 10 additions & 3 deletions shell/configs/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ vim.opt.termguicolors = true
require("incline").setup({})
require("fidget").setup({})
require("scope").setup({})
require("nvim-treeclimber").setup()

local get_hex = require("cokeline.hlgroups").get_hl_attr

Expand Down Expand Up @@ -89,7 +88,8 @@ dashboard.section.header.val = {
dashboard.section.header.opts.hl = "Keyword"
dashboard.section.buttons.val = {
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("n", " Notebook", ":VimwikiIndex <CR>"),
dashboard.button("nf", " Note Files", ":NoteFiles <CR>"),
dashboard.button("ng", " Search Notes", ":NoteText <CR>"),
dashboard.button("c", " Calendar", ":Calendar <CR>"),
dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
dashboard.button("g", "󰺄 Live grep", ":Telescope live_grep <CR>"),
Expand Down Expand Up @@ -215,7 +215,6 @@ cmp.setup({
{ name = "luasnip", keyword_length = 2 },
{ name = "path", option = { trailing_slash = true } },
{ name = "treesitter" },
{ name = "vimwiki-tags" },
}),
})

Expand Down Expand Up @@ -312,6 +311,14 @@ telescope.setup({})
telescope.load_extension("harpoon")
telescope.load_extension("scope")

vim.api.nvim_create_user_command("NoteFiles", function()
require("telescope.builtin").find_files({ cwd = "~/docs/notes" })
end, {})

vim.api.nvim_create_user_command("NoteText", function()
require("telescope.builtin").live_grep({ cwd = "~/docs/notes" })
end, {})

require("Comment").setup()

vim.filetype.add({
Expand Down
8 changes: 0 additions & 8 deletions shell/configs/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ set shiftwidth=4
set splitright
set splitbelow

" use sane markdown format for vimwiki
let g:vimwiki_list = [{'path': '~/docs/notes/',
\ 'syntax': 'markdown', 'ext': 'md'}]

let g:vimwiki_listsyms = '✗○◐●✓'
let g:vimwiki_table_mappings = 0


nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader><leader> <cmd>Telescope git_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
Expand Down
4 changes: 0 additions & 4 deletions shell/configs/nvim/nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ fetch.github = "tiagovla/scope.nvim"
[sixelpreview]
src.git = "https://github.com/sioodmy/sixelpreview.nvim"
fetch.github = "sioodmy/sixelpreview.nvim"

[nvim-treeclimber]
src.git = "https://github.com/Dkendal/nvim-treeclimber"
fetch.github = "Dkendal/nvim-treeclimber"

0 comments on commit 37d7ef8

Please sign in to comment.