Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Nov 4, 2024
1 parent c27c052 commit 00f0f30
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 6 deletions.
3 changes: 3 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ require 'config.redir'
vim.treesitter.language.add('pandoc_markdown', { path = "/usr/local/lib/libtree-sitter-pandoc-markdown.so" })
vim.treesitter.language.add('pandoc_markdown_inline', { path = "/usr/local/lib/libtree-sitter-pandoc-markdown-inline.so" })
vim.treesitter.language.register('pandoc_markdown', { 'quarto', 'rmarkdown' })

vim.treesitter.language.register("markdown", 'text')

2 changes: 1 addition & 1 deletion lua/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ return {

{ -- gh copilot
'zbirenbaum/copilot.lua',
enabled = true,
enabled = false,
config = function()
require('copilot').setup {
suggestion = {
Expand Down
8 changes: 5 additions & 3 deletions lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ return {
debounce_text_changes = 150,
}

vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = require('misc.style').border })
vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = require('misc.style').border })

local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = vim.tbl_deep_extend('force', capabilities, require('cmp_nvim_lsp').default_capabilities())
capabilities.textDocument.completion.completionItem.snippetSupport = true
Expand Down Expand Up @@ -159,6 +156,11 @@ return {
flags = lsp_flags,
}

lspconfig.svelte.setup {
capabilities = capabilities,
flags = lsp_flags,
}

lspconfig.yamlls.setup {
capabilities = capabilities,
flags = lsp_flags,
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ return {
opts = {
codeRunner = {
enabled = true,
default_method = "molten"
default_method = "slime"
}
},
dependencies = {
Expand Down Expand Up @@ -128,7 +128,7 @@ return {
{
'benlubas/molten-nvim',
dev = true,
enabled = true,
enabled = false,
build = ':UpdateRemotePlugins',
init = function()
vim.g.molten_image_provider = 'image.nvim'
Expand Down
19 changes: 19 additions & 0 deletions lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ return {
table.insert(vimgrep_arguments, '--glob')
table.insert(vimgrep_arguments, '!docs/*')

table.insert(vimgrep_arguments, '--glob')
table.insert(vimgrep_arguments, '!_site/*')

table.insert(vimgrep_arguments, '--glob')
table.insert(vimgrep_arguments, '!*_files/libs/*')

table.insert(vimgrep_arguments, '--glob')
table.insert(vimgrep_arguments, '!.obsidian/*')

table.insert(vimgrep_arguments, '--glob')
table.insert(vimgrep_arguments, '!.quarto/*')

table.insert(vimgrep_arguments, '--glob')
table.insert(vimgrep_arguments, '!_freeze/*')

telescope.setup {
defaults = {
buffer_previewer_maker = new_maker,
Expand All @@ -55,6 +70,10 @@ return {
'.git/',
'site_libs',
'.venv',
'_files/libs/',
'.obsidian',
'.quarto',
'._freeze',
},
layout_strategy = 'flex',
sorting_strategy = 'ascending',
Expand Down
4 changes: 4 additions & 0 deletions snips/snippets/markdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"prefix": ["eq"],
"body": ["\\$\\$", "$1", "\\$\\$ {#eq-${2: label}}"]
},
"def": {
"prefix": ["def"],
"body": [":::{#def-$1}", "## $2\n", "$3", ":::"]
},
"Insert Block Equation": {
"prefix": "$$",
"body": ["\\$$", "${0}", "\\$$"]
Expand Down

0 comments on commit 00f0f30

Please sign in to comment.