mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 12:57:37 +00:00
WIP: Made a few changes
This could use a broader refactor similar to lazyvim that takes advantage of opt merging
This commit is contained in:
parent
b6eb73cb77
commit
fc016bd7b8
@ -4,4 +4,7 @@ set shiftwidth=2
|
||||
" From plasticboy/vim-markdown via sheerun/vim-polyglot
|
||||
let g:vim_markdown_new_list_item_indent = 0
|
||||
|
||||
" Format frontmatter as YAML
|
||||
let g:vim_markdown_frontmatter = 1
|
||||
|
||||
call textobj#sentence#init()
|
||||
|
@ -186,6 +186,7 @@ return {
|
||||
{ "https://github.com/mfussenegger/nvim-dap" },
|
||||
{ "nvim-neotest/nvim-nio" },
|
||||
},
|
||||
ft = { "python", "rust" },
|
||||
config = function()
|
||||
require("dapui").setup({
|
||||
icons = {
|
||||
@ -483,9 +484,6 @@ return {
|
||||
})
|
||||
gs.async_pull()
|
||||
end,
|
||||
dependencies = {
|
||||
{ "https://github.com/epwalsh/obsidian.nvim" },
|
||||
},
|
||||
event = {
|
||||
"BufRead " .. vim.fn.expand("~") .. "/Documents/Obsidian/**.md",
|
||||
"BufNewFile " .. vim.fn.expand("~") .. "/Documents/Obsidian/**.md",
|
||||
@ -497,15 +495,11 @@ return {
|
||||
{ "https://github.com/nvim-lua/plenary.nvim" },
|
||||
},
|
||||
version = "1.x.x",
|
||||
config = function()
|
||||
-- TODO: maybe move this to opts?
|
||||
vim.g.vim_markdown_frontmatter = 1
|
||||
require("obsidian").setup({
|
||||
workspaces = {
|
||||
{ name = "personal", path = "~/Documents/Obsidian" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
workspaces = {
|
||||
{ name = "personal", path = "~/Documents/Obsidian" },
|
||||
},
|
||||
},
|
||||
event = {
|
||||
"BufRead " .. vim.fn.expand("~") .. "/Documents/Obsidian/**.md",
|
||||
"BufNewFile " .. vim.fn.expand("~") .. "/Documents/Obsidian/**.md",
|
||||
|
@ -51,14 +51,6 @@ function M.config_cmp()
|
||||
utils.keymap_set("i", "<Plug>(cmp_complete)", function()
|
||||
require("cmp").complete()
|
||||
end, { desc = "Autocomplete" })
|
||||
|
||||
-- Maybe add obsidian and obsidian new. This is done here in case obsidian.nvim is loaded before cmp
|
||||
utils.try_require("cmp_obsidian", function(cmp_obsidian)
|
||||
cmp.register_source("obsidian", cmp_obsidian.new())
|
||||
end)
|
||||
utils.try_require("cmp_obsidian_new", function(cmp_obsidian_new)
|
||||
cmp.register_source("obsidian_new", cmp_obsidian_new.new())
|
||||
end)
|
||||
end
|
||||
|
||||
return M
|
||||
|
@ -3,3 +3,4 @@ set shiftwidth=2
|
||||
|
||||
" From plasticboy/vim-markdown via sheerun/vim-polyglot
|
||||
let g:vim_markdown_new_list_item_indent = 0
|
||||
let g:vim_markdown_frontmatter = 1
|
||||
|
Loading…
Reference in New Issue
Block a user