nvim: many changes

This commit is contained in:
gyoder 2025-07-30 11:58:47 -06:00
parent f571b53d32
commit 7f9cb6e767
7 changed files with 63 additions and 10 deletions

View file

@ -52,7 +52,6 @@ end
-- vim.opt.spelllang = "en_us"
--
-- For init.lua
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
@ -90,3 +89,6 @@ vim.api.nvim_create_autocmd("TextYankPost", {
osc52.copy("*")(contents)
end,
})
-- Enable experimental UI in neovim-nightly
require('vim._extui').enable({})

View file

@ -0,0 +1,10 @@
return {
cmd = { 'astro-ls', '--stdio' },
filetypes = { 'astro' },
root_markers = { 'package.json', 'tsconfig.json', 'jsconfig.json', '.git' },
init_options = {
typescript = {
tsdk = "./node_modules/typescript/lib"
},
},
}

View file

@ -0,0 +1,23 @@
---@brief
---
--- [cspell language server](https://github.com/vlabo/cspell-lsp)
---
return {
cmd = { 'cspell-lsp', '--stdio' },
filetypes = {"go", "rust", "js", "ts", "html", "css", "json", "yaml", "markdown", "gitcommit", "typst", "lua", "htmlua"},
root_markers = {
'.git',
'cspell.json',
'.cspell.json',
'cspell.json',
'.cSpell.json',
'cSpell.json',
'cspell.config.js',
'cspell.config.cjs',
'cspell.config.json',
'cspell.config.yaml',
'cspell.config.yml',
'cspell.yaml',
'cspell.yml',
},
}

View file

@ -54,13 +54,9 @@ vim.lsp.enable("gopls")
vim.lsp.enable("tinymist")
vim.lsp.enable("cspell-ls")
vim.lsp.config('textlsp', {
on_attach = function()
print('textlsp is now active in this file')
end,
})
vim.lsp.enable("textlsp")
vim.lsp.enable("astro")
-- https://lsp-zero.netlify.app/blog/lsp-client-features.html

View file

@ -163,6 +163,31 @@ return require('packer').startup(function(use)
-- use "folke/which-key.nvim"
use({
"andrewferrier/wrapping.nvim",
config = function()
require("wrapping").setup()
end,
})
use({
"iamcco/markdown-preview.nvim",
run = function() vim.fn["mkdp#util#install"]() end,
})
use {
'preservim/vim-pencil',
config = function()
vim.cmd([[
augroup PencilSetup
autocmd!
autocmd FileType markdown,text,tex,gitcommit setlocal formatoptions+=t
autocmd FileType markdown,text,tex,gitcommit PencilHard
augroup END augroup END
]])
end
}
------------------------

View file

@ -1,3 +0,0 @@
WIP
Hardcoded
HTMLua