mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-06-08 06:08:24 +02:00
Compare commits
12 Commits
a53ff4ebca
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
0dc34abcc0
|
|||
|
fd7a0daede
|
|||
|
fb24c7430b
|
|||
|
9eab1602d0
|
|||
|
4ff8b00b46
|
|||
|
96caa99e91
|
|||
|
cae71c8c69
|
|||
| 1443924f9b | |||
| 82ffdf6ef4 | |||
| 626a11d76f | |||
| 26e76a065b | |||
| bdf07b7f2d |
@@ -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
|
||||||
|
|
||||||
@@ -6,8 +6,4 @@ 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]]
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -3,9 +3,11 @@ local cmp_cap = require("config.cmp").capabilities
|
|||||||
local servers = {
|
local servers = {
|
||||||
"zls",
|
"zls",
|
||||||
"ts_ls",
|
"ts_ls",
|
||||||
|
"eslint",
|
||||||
"yamlls",
|
"yamlls",
|
||||||
"vimls",
|
"vimls",
|
||||||
"ruff",
|
"ruff",
|
||||||
|
"pyright",
|
||||||
"denols",
|
"denols",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"qmlls",
|
"qmlls",
|
||||||
@@ -21,7 +23,6 @@ local servers = {
|
|||||||
"cssls",
|
"cssls",
|
||||||
"tailwindcss",
|
"tailwindcss",
|
||||||
"jdtls",
|
"jdtls",
|
||||||
"odinls",
|
|
||||||
"powershell_es",
|
"powershell_es",
|
||||||
"rust_analyzer",
|
"rust_analyzer",
|
||||||
}
|
}
|
||||||
@@ -49,3 +50,11 @@ vim.lsp.config("rust_analyzer", {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.lsp.config("eslint", {
|
||||||
|
settings = {
|
||||||
|
experimental = {
|
||||||
|
useFlatConfig = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|||||||
@@ -1 +1,11 @@
|
|||||||
let g:neoformat_enabled_yaml = ['prettierd']
|
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']
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ map(
|
|||||||
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,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",
|
||||||
|
|||||||
Reference in New Issue
Block a user