mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 06:40:25 +01:00
Compare commits
8 Commits
75ab018b30
...
6c496fd2c0
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c496fd2c0 | |||
| 23c8c64f48 | |||
| ec8317ddcd | |||
| ce732c7e75 | |||
| 8dd78f67ee | |||
| fc926d42cb | |||
| 19b4fcbc5f | |||
| cb0a57be0b |
9
.config/nvim/after/ftplugin/lua.lua
Normal file
9
.config/nvim/after/ftplugin/lua.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
-- indent_type = "Spaces"
|
||||
-- indent_width = 4
|
||||
-- call_parentheses = "Always"
|
||||
-- column_width = 120
|
||||
|
||||
vim.bo.tabstop = 4
|
||||
vim.bo.softtabstop = 4
|
||||
vim.bo.shiftwidth = 4
|
||||
vim.bo.expandtab = true
|
||||
@@ -1,30 +1,12 @@
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
|
||||
formatters_by_ft = {
|
||||
sh = { "shfmt" },
|
||||
bash = { "shfmt" },
|
||||
},
|
||||
|
||||
-- format_on_save = {
|
||||
-- -- These options will be passed to conform.format()
|
||||
-- timeout_ms = 500,
|
||||
-- lsp_fallback = true,
|
||||
-- quiet = true,
|
||||
-- },
|
||||
},
|
||||
|
||||
config = function(_, opts)
|
||||
local conform = require("conform")
|
||||
conform.setup(opts)
|
||||
|
||||
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
|
||||
vim.keymap.set("n", "<leader>f", function()
|
||||
conform.format({
|
||||
timeout_ms = 5000,
|
||||
lsp_fallback = true,
|
||||
})
|
||||
end)
|
||||
end,
|
||||
formatters_by_ft = {
|
||||
sh = { "shfmt" },
|
||||
bash = { "shfmt" },
|
||||
lua = { "stylua" },
|
||||
fish = { "fish_indent" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
23
.config/nvim/lua/plugins/markdown-toggle.lua
Normal file
23
.config/nvim/lua/plugins/markdown-toggle.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
return {
|
||||
"roodolv/markdown-toggle.nvim",
|
||||
config = function()
|
||||
require("markdown-toggle").setup({
|
||||
-- cycle through checkboxes
|
||||
cycle_box_table = true,
|
||||
-- doing, done, wut, important, forwarded
|
||||
box_table = { "/", "x", "?", "!", ">" },
|
||||
keymaps = {
|
||||
toggle = {
|
||||
["<C-q>"] = "quote",
|
||||
["<C-l>"] = "list",
|
||||
["<Leader><C-l>"] = "list_cycle",
|
||||
["<C-n>"] = "olist",
|
||||
["<M-x>"] = "checkbox_cycle",
|
||||
["<Leader><M-x>"] = "checkbox",
|
||||
["<C-h>"] = "heading",
|
||||
["<Leader><C-h>"] = "heading_toggle",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
5
.config/nvim/stylua.toml
Normal file
5
.config/nvim/stylua.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
column_width = 120
|
||||
[sort_requires]
|
||||
enabled = true
|
||||
@@ -7,7 +7,7 @@ cd ~/divaultwiki
|
||||
git pull
|
||||
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
|
||||
if ! command -v nvim >/dev/null 2>&1; then
|
||||
vim -c "set nofoldenable" ~/divaultplan/planning_2026.todo ~/divaultphren/index.md ~/divaultwiki/home.md
|
||||
vim -c "set nofoldenable" ~/divaultplan/planning_2026.md
|
||||
else
|
||||
nvim -c "set nofoldenable" ~/divaultplan/planning_2026.todo ~/divaultphren/index.md ~/divaultwiki/home.md
|
||||
nvim -c "set nofoldenable" ~/divaultplan/planning_2026.md
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user