mirror of
https://github.com/bgrolleman/dotfiles.git
synced 2025-12-06 05:45:24 +01:00
Lots of LSP lessons
This commit is contained in:
@@ -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
|
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.
|
typing, then I suddenly understand why we have such high energy bills.
|
||||||
|
|
||||||
### Keyboard keys to remember
|
### LSP Keys
|
||||||
|
|
||||||
- =g Cleanup code
|
- =g Cleanup code
|
||||||
- K Get hover definition
|
- K Get hover definition
|
||||||
|
- gr (anything)
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ return {
|
|||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
config = function()
|
config = function()
|
||||||
require("lspconfig").lua_ls.setup({})
|
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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
38
nvim/lua/plugins/mkdnflow.lua
Normal file
38
nvim/lua/plugins/mkdnflow.lua
Normal 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,
|
||||||
|
}
|
||||||
@@ -15,6 +15,9 @@ return {
|
|||||||
checkbox = {
|
checkbox = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
},
|
},
|
||||||
|
wikilinks = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user