1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

silently format lua file using stylua

We need to disable the mapping set for LSP, otherwise the mapping set in
lua.vim will be overridden.
This commit is contained in:
jdhao
2024-12-19 23:43:40 +01:00
parent 1d66475cae
commit 7e706515a8
2 changed files with 2 additions and 2 deletions

View File

@@ -4,4 +4,4 @@ set formatoptions-=r
nnoremap <buffer><silent> <F9> :luafile %<CR>
nnoremap <buffer><silent> <space>f <cmd>!stylua %<CR>
nnoremap <buffer><silent> <space>f <cmd>silent !stylua %<CR>