mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: some formatting
This commit is contained in:
parent
184e9b01ee
commit
0adb1a40eb
3 changed files with 27 additions and 28 deletions
|
|
@ -2,17 +2,16 @@ local autocmd = vim.api.nvim_create_autocmd
|
|||
local augroup = vim.api.nvim_create_augroup
|
||||
|
||||
-- Highlight on yank
|
||||
autocmd('TextYankPost', {
|
||||
group = vim.api.nvim_create_augroup('highlight_yank', {}),
|
||||
desc = 'Hightlight selection on yank',
|
||||
pattern = '*',
|
||||
callback = function()
|
||||
vim.highlight.on_yank { higroup = 'IncSearch', timeout = 400 }
|
||||
end,
|
||||
autocmd("TextYankPost", {
|
||||
group = vim.api.nvim_create_augroup("highlight_yank", {}),
|
||||
desc = "Hightlight selection on yank",
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 400 })
|
||||
end,
|
||||
})
|
||||
|
||||
-- Remove all trailing whitespaces on save
|
||||
autocmd('BufWritePre', {
|
||||
command = [[:exe 'norm m`' | %s/\s\+$//eg | norm ``]]
|
||||
autocmd("BufWritePre", {
|
||||
command = [[:exe 'norm m`' | %s/\s\+$//eg | norm ``]],
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ return {
|
|||
servers = {
|
||||
-- Bash
|
||||
bashls = {},
|
||||
-- C/C++
|
||||
ccls = {},
|
||||
-- C/C++
|
||||
ccls = {},
|
||||
-- PHP
|
||||
intelephense = {},
|
||||
-- phpactor = {
|
||||
|
|
@ -34,7 +34,7 @@ return {
|
|||
-- },
|
||||
-- JS,TS,VUE
|
||||
tsserver = {
|
||||
document_highlight = false,
|
||||
document_highlight = false,
|
||||
settings = {
|
||||
tsserver_plugins = {
|
||||
"@vue/typescript-plugin",
|
||||
|
|
@ -84,17 +84,17 @@ return {
|
|||
cmd = { "/opt/luals/bin/lua-language-server", "--logpath=~/.local/luals/logs" },
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
version = 'LuaJIT'
|
||||
},
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = {
|
||||
vim.env.VIMRUNTIME
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
runtime = {
|
||||
version = "LuaJIT",
|
||||
},
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = {
|
||||
vim.env.VIMRUNTIME,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ return {
|
|||
"phpdoc",
|
||||
"blade",
|
||||
"go",
|
||||
"gotmpl",
|
||||
"gotmpl",
|
||||
"gomod",
|
||||
"gosum",
|
||||
"javascript",
|
||||
|
|
@ -34,7 +34,7 @@ return {
|
|||
"hlsl",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"kdl"
|
||||
"kdl",
|
||||
},
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
|
|
@ -55,6 +55,6 @@ return {
|
|||
},
|
||||
|
||||
indent = {
|
||||
enable = true
|
||||
}
|
||||
enable = true,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue