Compare commits

..

2 Commits

Author SHA1 Message Date
Lüdecke Sascha
1005b984fa Org Mode fixes for refile on windows breaking newlines 2026-04-20 10:44:17 +02:00
Lüdecke Sascha
bc1a21c0da LazyDev plugin added to have vim recognized as global in config 2026-04-20 10:43:51 +02:00
3 changed files with 28 additions and 2 deletions

View File

@@ -11,3 +11,8 @@ vim.keymap.set(
desc = 'ORG: meta return'
}
)
-- Force LF line endings for Org files (fixes capture/refile newline duplication on Windows)
if vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 then
vim.opt_local.fileformat = "unix"
end

View File

@@ -14,7 +14,7 @@ sl_opt = {
org_base_folder = ORG_BASE_FOLDER,
org_agenda_files = ORG_BASE_FOLDER .. '/*.org',
org_default_notes_file = ORG_BASE_FOLDER .. '/refile.org',
org_archive_location = ORG_BASE_FOLDER .. '/.archive.org',
org_archive_location = ORG_BASE_FOLDER .. '/archive.org',
org_roam_folder = ORG_BASE_FOLDER .. '/roam',
}

View File

@@ -83,7 +83,7 @@ require("lazy").setup({
-- Default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, due to `opts_extend`
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer', 'orgmode' },
default = { 'lsp', 'path', 'snippets', 'buffer', 'orgmode', 'lazydev' },
-- per_filetype = {
-- org = { 'orgmode' }
-- },
@@ -95,6 +95,13 @@ require("lazy").setup({
fallbacks = { 'lsp', 'path', 'snippets', 'buffer' },
-- fallbacks = { 'buffer' },
},
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100,
},
},
},
@@ -560,5 +567,19 @@ require("lazy").setup({
}
},
-- improve neovim configuration file editing
{
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {
library = {
-- See the configuration section for more details
-- Load luvit types when the `vim.uv` word is found
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
},
-- new plugins BEFORE here
})