Skip to content

Instantly share code, notes, and snippets.

@wladston
wladston / colorscheme_autocms.lua
Created July 16, 2025 13:30
Neovim, switch colorscheme preserving underline on links, highlights, and formatting
-- After changing colorscheme, Neovim wipes syntax highlights and conceal rules.
-- This re-runs filetype syntax and restores conceal settings if they were in use.
-- Prevents broken link formatting and visible markdown/tutor syntax.
vim.api.nvim_create_autocmd('ColorScheme', {
pattern = '*',
callback = function()
local win = vim.api.nvim_get_current_win()
local conceallevel = vim.wo[win].conceallevel
local concealcursor = vim.wo[win].concealcursor
@wladston
wladston / gist:6004d1201ffa28b45341b44cdbdefc10
Created September 11, 2025 20:44
Minimal Neovim + Lazy + Mason setup: Enable LSP in Vue
return {
{ 'neovim/nvim-lspconfig' },
{ 'mason-org/mason.nvim', opts = {} },
{
'mason-org/mason-lspconfig.nvim',
opts = {
ensure_installed = { 'ts_ls', 'vue_ls' },
},
config = function(_, opts)
require('mason-lspconfig').setup(opts)