markdown shit
This commit is contained in:
parent
1f26351afb
commit
ae616afa54
@ -7,8 +7,8 @@ M.ui = {
|
||||
hl_add = {},
|
||||
hl_override = {},
|
||||
changed_themes = {},
|
||||
theme_toggle = { "dark_horizon", "one_light" },
|
||||
theme = "dark_horizon", -- default theme
|
||||
theme_toggle = { "melange", "one_light" },
|
||||
theme = "melange", -- default theme
|
||||
transparency = false,
|
||||
lsp_semantic_tokens = false, -- needs nvim v0.9, just adds highlight groups for lsp semantic tokens
|
||||
|
||||
|
||||
@ -5,26 +5,12 @@ local capabilities = config.capabilities
|
||||
|
||||
local lspconfig = require "lspconfig"
|
||||
|
||||
local servers = {
|
||||
"pyright",
|
||||
lspconfig.jedi_language_server.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
filetypes = { "python" },
|
||||
}
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
filetypes = { "python" },
|
||||
handlers = {
|
||||
["textDocument/publishDiagnostics"] = function(_, result, ctx, config)
|
||||
config = config or {}
|
||||
config.virtual_text = false
|
||||
vim.lsp.diagnostic.on_publish_diagnostics(_, result, ctx, config)
|
||||
end,
|
||||
["textDocument/signatureHelp"] = function() end, -- Disable automatic signature help
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
lspconfig.hls.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
|
||||
@ -3,4 +3,5 @@ vim.g.tlaplus_mappings_enable = true
|
||||
vim.env.PATH = vim.env.PATH .. ":/home/danesabo/.ghcup/bin"
|
||||
vim.g.loaded_python3_provider = 1
|
||||
vim.g.python3_host_prog = vim.fn.expand "~/.config/nvim/nvim_venv/bin/python"
|
||||
vim.keymap.set("i", "jj", "<ESC>")
|
||||
print "Custom init settings loaded."
|
||||
|
||||
@ -4,4 +4,16 @@ vim.keymap.set(
|
||||
"<M-i>The quick brown fox jumps over the lazy dog. The dog stays blissfully asleep. :)",
|
||||
{ desc = "Print a standard 80 character string for Markdown formatting." }
|
||||
)
|
||||
-- Create an autocommand for markdown filetype using Neovim's Lua API
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "markdown", -- Only for files with filetype 'markdown'
|
||||
callback = function()
|
||||
-- Enable spell checking locally for the buffer
|
||||
vim.opt_local.spell = true
|
||||
-- Optionally, set the spell language (e.g., US English)
|
||||
vim.opt_local.spelllang = "en_us"
|
||||
-- You can add additional buffer-local settings here if needed
|
||||
end,
|
||||
})
|
||||
|
||||
print "Markdown Keybinds Loaded"
|
||||
|
||||
@ -13,7 +13,7 @@ local plugins = {
|
||||
"clangd",
|
||||
"marksman",
|
||||
"ruff",
|
||||
"pyright",
|
||||
"jedi-language-server",
|
||||
|
||||
--- formatters
|
||||
"stylua",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user