Compare commits

...

22 Commits

Author SHA1 Message Date
AramJonghu 0dc34abcc0 leftover removed 2026-06-06 22:52:46 +02:00
AramJonghu fd7a0daede missing files in commit 2026-06-06 22:48:55 +02:00
AramJonghu fb24c7430b macchiato -> mocha 2026-06-05 00:29:31 +02:00
AramJonghu 9eab1602d0 multi-cursor 2026-06-04 22:48:04 +02:00
AramJonghu 4ff8b00b46 qmlformat added 2026-06-02 00:10:04 +02:00
AramJonghu 96caa99e91 no use odin for now 2026-05-27 22:01:35 +02:00
AramJonghu cae71c8c69 pyright back 2026-05-25 18:07:15 +02:00
AramJonghu 1443924f9b neoformat now detects powershell formatter 2026-05-22 00:39:45 +02:00
AramJonghu 82ffdf6ef4 eslint runs 2026-05-21 20:52:42 +02:00
AramJonghu 626a11d76f new bind 2026-05-21 17:59:26 +02:00
AramJonghu 26e76a065b stylua 2026-05-21 00:39:55 +02:00
AramJonghu bdf07b7f2d gitsigns 2026-05-20 19:32:04 +02:00
AramJonghu a53ff4ebca stylua 2026-05-20 01:31:00 +02:00
AramJonghu 761297c7e8 ps1 linter/lsp 2026-05-20 01:28:17 +02:00
AramJonghu b46a6e8537 neoformat was formatting yml with python, causing issues 2026-05-20 00:58:53 +02:00
AramJonghu 1e21f81c50 clippy on trigger 2026-05-19 23:48:28 +02:00
AramJonghu eb9a46aa65 added clippy for rust file linting 2026-05-19 23:38:47 +02:00
AramJonghu 5baacf2a15 ruff in favor of pyright 2026-05-19 23:24:16 +02:00
AramJonghu c14eb51fad fixed deprecated syntax undotree.lua 2026-05-19 23:06:05 +02:00
AramJonghu f19c66766f neorg unused and removed, neoformat 2026-05-16 23:06:43 +02:00
AramJonghu 6dafec86f9 patched telescope issue 2026-05-15 16:14:17 +02:00
AramJonghu 863a27f195 live_grep 2026-05-07 23:00:53 +02:00
13 changed files with 202 additions and 69 deletions
+14
View File
@@ -0,0 +1,14 @@
function! neoformat#formatters#qml#enabled() abort
return ['qmlformat']
endfunction
function! neoformat#formatters#qml#qmlformat() abort
return {
\ 'exe': '/usr/lib/qt6/bin/qmlformat',
\ 'args': ['-t', '-n', '--objects-spacing', '--functions-spacing', '-i'],
\ 'replace': 1,
\ 'stderr': 1,
\ 'stdin': 0
\ }
endfunction
+2 -6
View File
@@ -4,10 +4,6 @@ require "config.lazy"
require "mappings" require "mappings"
require "autocmd" require "autocmd"
vim.cmd "source ~/.config/nvim/suda.vim" vim.cmd "source ~/.config/nvim/suda.vim"
local time = tonumber(os.date "%H") -- local time = tonumber(os.date "%H")
vim.filetype.add { vim.cmd [[colorscheme catppuccin-mocha]]
pattern = {[".*/hypr/.*%.conf"] = "hyprlang", [".*/uwsm/env.*"] = "zsh"}
}
vim.cmd [[colorscheme catppuccin-macchiato]]
+16
View File
@@ -1 +1,17 @@
local autocmd = vim.api.nvim_create_autocmd local autocmd = vim.api.nvim_create_autocmd
local augroup = vim.api.nvim_create_augroup
local neoformat_group = augroup("NeoformatOnSave", { clear = true })
autocmd("BufWritePost", {
group = neoformat_group,
callback = function()
if vim.bo.buftype ~= "" or vim.bo.modifiable == false or vim.bo.readonly then
return
end
if vim.fn.exists ":Neoformat" ~= 2 then
return
end
vim.cmd "silent! Neoformat"
end,
})
+49
View File
@@ -0,0 +1,49 @@
require("gitsigns").setup {
signs = {
add = { text = "" },
change = { text = "" },
delete = { text = "_" },
topdelete = { text = "" },
changedelete = { text = "~" },
untracked = { text = "" },
},
signs_staged = {
add = { text = "" },
change = { text = "" },
delete = { text = "_" },
topdelete = { text = "" },
changedelete = { text = "~" },
untracked = { text = "" },
},
signs_staged_enable = true,
signcolumn = true,
numhl = false,
linehl = false,
word_diff = false,
watch_gitdir = {
follow_files = true,
},
auto_attach = true,
attach_to_untracked = false,
current_line_blame = false,
current_line_blame_opts = {
virt_text = true,
virt_text_pos = "eol",
delay = 1000,
ignore_whitespace = false,
virt_text_priority = 100,
use_focus = true,
},
current_line_blame_formatter = "<author>, <author_time:%R> - <summary>",
blame_formatter = nil,
sign_priority = 6,
update_debounce = 100,
status_formatter = nil,
max_file_length = 40000,
preview_config = {
style = "minimal",
relative = "cursor",
row = 0,
col = 1,
},
}
+28 -2
View File
@@ -3,8 +3,10 @@ local cmp_cap = require("config.cmp").capabilities
local servers = { local servers = {
"zls", "zls",
"ts_ls", "ts_ls",
"eslint",
"yamlls", "yamlls",
"vimls", "vimls",
"ruff",
"pyright", "pyright",
"denols", "denols",
"lua_ls", "lua_ls",
@@ -17,13 +19,12 @@ local servers = {
"nginx_language_server", "nginx_language_server",
"docker_compose_language_service", "docker_compose_language_service",
"dockerls", "dockerls",
"rust_analyzer",
"html", "html",
"cssls", "cssls",
"tailwindcss", "tailwindcss",
"jdtls", "jdtls",
"odinls",
"powershell_es", "powershell_es",
"rust_analyzer",
} }
for _, server in ipairs(servers) do for _, server in ipairs(servers) do
@@ -32,3 +33,28 @@ for _, server in ipairs(servers) do
}) })
vim.lsp.enable(server) vim.lsp.enable(server)
end end
vim.lsp.config("powershell_es", {
capabilities = cmp_cap,
bundle_path = "/opt/powershell-editor-services",
})
vim.lsp.config("rust_analyzer", {
capabilities = cmp_cap,
settings = {
["rust-analyzer"] = {
check = {
command = "clippy",
trigger = "onType",
},
},
},
})
vim.lsp.config("eslint", {
settings = {
experimental = {
useFlatConfig = true,
},
},
})
+11
View File
@@ -0,0 +1,11 @@
let g:neoformat_enabled_yaml = ['prettierd']
let g:neoformat_ps1_psscriptanalyzer = {
\ 'exe': 'pwsh',
\ 'args': ['-NoProfile', '-Command',
\ '"Import-Module (Resolve-Path \"/opt/powershell-editor-services/PSScriptAnalyzer/*/PSScriptAnalyzer.psd1\" | Select-Object -ExpandProperty Path); Invoke-Formatter -ScriptDefinition (\$input | Out-String)"'],
\ 'stdin': 1,
\ }
let g:neoformat_enabled_ps1 = ['psscriptanalyzer']
let g:neoformat_enabled_qml = ['qmlformat']
-5
View File
@@ -1,5 +0,0 @@
require("neorg").setup {
load = {
["core.defaults"] = {},
},
}
+46 -46
View File
@@ -1,55 +1,55 @@
local opts = {} local opts = {}
opts = { opts = {
file_types = { "markdown" }, file_types = { "markdown" },
completions = { completions = {
lsp = { lsp = {
enabled = true, enabled = true,
},
}, },
}, render_modes = true,
render_modes = true,
anti_conceal = { anti_conceal = {
enabled = true, enabled = true,
above = 1, above = 1,
below = 1, below = 1,
}, },
code = { code = {
enabled = true, enabled = true,
render_modes = false, render_modes = false,
sign = true, sign = true,
conceal_delimiters = true, conceal_delimiters = true,
language = true, language = true,
position = "left", position = "left",
language_icon = true, language_icon = true,
language_name = true, language_name = true,
language_info = true, language_info = true,
language_pad = 0, language_pad = 0,
width = "full", width = "full",
left_margin = 0, left_margin = 0,
left_pad = 2, left_pad = 2,
right_pad = 0, right_pad = 0,
min_width = 40, min_width = 40,
border = "thick", border = "thick",
language_border = "", language_border = "",
language_left = "", language_left = "",
language_right = "", language_right = "",
above = "", above = "",
below = "", below = "",
inline = true, inline = true,
inline_left = "", inline_left = "",
inline_right = "", inline_right = "",
inline_pad = 0, inline_pad = 0,
priority = 140, priority = 140,
highlight = "RenderMarkdownCode", highlight = "RenderMarkdownCode",
highlight_info = "RenderMarkdownCodeInfo", highlight_info = "RenderMarkdownCodeInfo",
highlight_language = nil, highlight_language = nil,
highlight_border = "RenderMarkdownCodeBorder", highlight_border = "RenderMarkdownCodeBorder",
highlight_fallback = "RenderMarkdownCodeFallback", highlight_fallback = "RenderMarkdownCodeFallback",
highlight_inline = "RenderMarkdownCodeInline", highlight_inline = "RenderMarkdownCodeInline",
style = "full", style = "full",
}, },
} }
return opts return opts
+13
View File
@@ -1 +1,14 @@
if not vim.F then
vim.F = {}
end
if not vim.F.if_nil and not vim.nonnil then
vim.F.if_nil = function(value, default)
if value == nil then
return default
end
return value
end
end
require("telescope").setup {} require("telescope").setup {}
+8 -8
View File
@@ -12,13 +12,13 @@ require("undotree").setup {
}, },
window = { winblend = 30 }, window = { winblend = 30 },
keymaps = { keymaps = {
["j"] = "move_next", ["move_next"] = "j",
["k"] = "move_prev", ["move_prev"] = "k",
["gj"] = "move2parent", ["move2parent"] = "gj",
["J"] = "move_change_next", ["move_change_next"] = "J",
["K"] = "move_change_prev", ["move_change_prev"] = "K",
["<cr>"] = "action_enter", ["action_enter"] = "<cr>",
["p"] = "enter_diffbuf", ["enter_diffbuf"] = "p",
["q"] = "quit", ["quit"] = "q",
}, },
} }
+5 -1
View File
@@ -8,10 +8,14 @@ end)
map( map(
"n", "n",
"<leader>ff", "<leader>ff",
"<cmd>lua require'telescope.builtin'.find_files({ find_command = {'rg', '--files', '--hidden', '-g', '!.git' }})<cr>", "<cmd>lua require('telescope.builtin').live_grep({ additional_args = function() return { '--hidden', '-g', '!.git' } end })<cr>",
default_opts default_opts
) )
map("n", "<leader>fn", "<Cmd>Telescope find_files<CR>")
map("n", "<leader>ww", "<Cmd>lua vim.diagnostic.open_float()<CR>")
map({ "n", "v" }, "<leader>ap", require("actions-preview").code_actions) map({ "n", "v" }, "<leader>ap", require("actions-preview").code_actions)
map("n", "<Tab>", "<Cmd>BufferLineCycleNext<CR>") map("n", "<Tab>", "<Cmd>BufferLineCycleNext<CR>")
+1 -1
View File
@@ -1,4 +1,4 @@
vim.opt.spelllang = { "en_us", "nl"} vim.opt.spelllang = { "en_us", "nl" }
vim.opt.spell = true vim.opt.spell = true
vim.opt.relativenumber = true vim.opt.relativenumber = true
vim.opt.tabstop = 4 vim.opt.tabstop = 4
+9
View File
@@ -1,4 +1,13 @@
return { return {
{
"mg979/vim-visual-multi",
},
{
"lewis6991/gitsigns.nvim",
config = function()
require "gitsigns"
end,
},
{ "vimpostor/vim-tpipeline" }, { "vimpostor/vim-tpipeline" },
{ {
"aznhe21/actions-preview.nvim", "aznhe21/actions-preview.nvim",