mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-07-21 16:00:55 +00:00
updated a bunch
This commit is contained in:
@@ -72,3 +72,7 @@ cmp.setup({
|
||||
},
|
||||
})
|
||||
|
||||
-- Disable cmp for markdown notes (no recommendations/autocomplete)
|
||||
cmp.setup.filetype("markdown", {
|
||||
enabled = false,
|
||||
})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = false
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.cursorline = true
|
||||
|
||||
@@ -54,15 +54,27 @@ require("lazy").setup({
|
||||
},
|
||||
|
||||
-- Markdown Preview Page
|
||||
{
|
||||
'MeanderingProgrammer/render-markdown.nvim',
|
||||
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.nvim'}, -- if you use the mini.nvim suite
|
||||
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.icons' }, -- if you use standalone mini plugins
|
||||
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
|
||||
---@module 'render-markdown'
|
||||
---@type render.md.UserConfig
|
||||
opts = {},
|
||||
},
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
ft = { "markdown" },
|
||||
build = function()
|
||||
require("lazy").load({ plugins = { "markdown-preview.nvim" } })
|
||||
vim.fn["mkdp#util#install"]()
|
||||
end,
|
||||
config = function()
|
||||
vim.g.mkdp_echo_preview_url = 1
|
||||
|
||||
vim.cmd([[
|
||||
function! OpenMarkdownPreview(url)
|
||||
call jobstart(['xdg-open', a:url], {'detach': v:true})
|
||||
endfunction
|
||||
]])
|
||||
|
||||
vim.g.mkdp_browserfunc = "OpenMarkdownPreview"
|
||||
end,
|
||||
},
|
||||
|
||||
|
||||
-- Tabs
|
||||
{ 'romgrk/barbar.nvim',
|
||||
@@ -90,5 +102,18 @@ require("lazy").setup({
|
||||
lazy = false, -- neo-tree will lazily load itself
|
||||
},
|
||||
|
||||
-- GitHub Copilot
|
||||
"github/copilot.vim",
|
||||
|
||||
{
|
||||
"lervag/vimtex",
|
||||
lazy = false, -- we don't want to lazy load VimTeX
|
||||
-- tag = "v2.15", -- uncomment to pin to a specific release
|
||||
init = function()
|
||||
-- VimTeX configuration goes here, e.g.
|
||||
vim.g.vimtex_view_method = "zathura"
|
||||
end
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user