Lots of LSP lessons

This commit is contained in:
2025-06-08 16:41:51 +02:00
parent 5ecacb5d28
commit 98133dad03
6 changed files with 49 additions and 3 deletions

View File

@@ -46,7 +46,8 @@ Seems to be working, but not sure how to use it yet. But in the base it's typing
and then just pressing enter. If this thing does a co-pilot call whenever I'm
typing, then I suddenly understand why we have such high energy bills.
### Keyboard keys to remember
### LSP Keys
- =g Cleanup code
- K Get hover definition
- gr (anything)

View File

@@ -2,6 +2,10 @@ return {
"neovim/nvim-lspconfig",
config = function()
require("lspconfig").lua_ls.setup({})
require("lspconfig").marksman.setup({})
require("lspconfig").marksman.setup({
root_dir = require("lspconfig.util").root_pattern(".marksman.toml", ".git", "*.md"),
})
require("lspconfig").bashls.setup({})
require("lspconfig").yamlls.setup({})
end,
}

View File

@@ -0,0 +1,38 @@
-- Configuration Documentation https://github.com/jakewvincent/mkdnflow.nvim?tab=readme-ov-file#%EF%B8%8F-configuration
return {
"jakewvincent/mkdnflow.nvim",
config = function()
require("mkdnflow").setup({
-- Config goes here; leave blank for defaults
perspective = {
priority = "first",
root_tell = false,
},
new_file_template = {
use_template = true,
placeholders = {
before = {
title = "link_title",
date = "os_date",
},
after = {},
},
template = "# {{ title }}",
},
links = {
style = "markdown",
name_is_source = false,
conceal = false,
context = 0,
implicit_extension = nil,
transform_implicit = false,
transform_explicit = function(text)
text = text:gsub(" ", "-")
text = text:lower()
return text
end,
create_on_follow_failure = true,
},
})
end,
}

View File

@@ -15,6 +15,9 @@ return {
checkbox = {
enabled = true,
},
wikilinks = {
enabled = true,
},
})
end,
}