diff --git a/lua/custom/chadrc.lua b/lua/custom/chadrc.lua index 6997ab8..0f1c60f 100644 --- a/lua/custom/chadrc.lua +++ b/lua/custom/chadrc.lua @@ -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 diff --git a/lua/custom/configs/lspconfig.lua b/lua/custom/configs/lspconfig.lua index 7e99d43..c4b8fa0 100644 --- a/lua/custom/configs/lspconfig.lua +++ b/lua/custom/configs/lspconfig.lua @@ -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, diff --git a/lua/custom/init.lua b/lua/custom/init.lua index 1f2aa8f..db5c2e6 100644 --- a/lua/custom/init.lua +++ b/lua/custom/init.lua @@ -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", "") print "Custom init settings loaded." diff --git a/lua/custom/language_specific_commands/markdown.lua b/lua/custom/language_specific_commands/markdown.lua index 4e4f29f..692e0c1 100644 --- a/lua/custom/language_specific_commands/markdown.lua +++ b/lua/custom/language_specific_commands/markdown.lua @@ -4,4 +4,16 @@ vim.keymap.set( "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" diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index c30b4fb..f9d6927 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -13,7 +13,7 @@ local plugins = { "clangd", "marksman", "ruff", - "pyright", + "jedi-language-server", --- formatters "stylua",