custom-hypr - add: nvim config
This commit is contained in:
20
.config/nvim/lua/plugins/configs/lsp/formatting.lua
Normal file
20
.config/nvim/lua/plugins/configs/lsp/formatting.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- Customize lsp formatting options
|
||||
return { -- control auto formatting on save
|
||||
format_on_save = {
|
||||
enabled = false, -- enable or disable format on save globally
|
||||
allow_filetypes = { -- enable format on save for specified filetypes only
|
||||
-- "go",
|
||||
},
|
||||
ignore_filetypes = { -- disable format on save for specified filetypes
|
||||
-- "lua",
|
||||
},
|
||||
},
|
||||
disabled = { -- disable formatting capabilities for the listed language servers
|
||||
-- disable lua_ls formatting capability if you want to use StyLua to format your lua code
|
||||
-- "lua_ls",
|
||||
},
|
||||
timeout_ms = 1000, -- default format timeout
|
||||
-- filter = function(client) -- fully override the default formatting function
|
||||
-- return true
|
||||
-- end
|
||||
}
|
||||
Reference in New Issue
Block a user