Add local lua file, update formatting
This commit is contained in:
parent
d38af69f0f
commit
2a3ea1898a
6
init.lua
6
init.lua
|
|
@ -170,6 +170,9 @@ vim.o.scrolloff = 10
|
|||
-- See `:help 'confirm'`
|
||||
vim.o.confirm = true
|
||||
|
||||
-- Allow loading local .nvim.lua files
|
||||
vim.o.exrc = true
|
||||
|
||||
-- [[ Basic Keymaps ]]
|
||||
-- See `:help vim.keymap.set()`
|
||||
|
||||
|
|
@ -708,7 +711,7 @@ require('lazy').setup({
|
|||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||
-- have a well standardized coding style. You can add additional
|
||||
-- languages here or re-enable it for the disabled ones.
|
||||
local disable_filetypes = { c = true, cpp = true }
|
||||
local disable_filetypes = {}
|
||||
if disable_filetypes[vim.bo[bufnr].filetype] then
|
||||
return nil
|
||||
else
|
||||
|
|
@ -908,7 +911,6 @@ require('lazy').setup({
|
|||
'python',
|
||||
'diff',
|
||||
'json',
|
||||
'jsonc',
|
||||
'html',
|
||||
'xml',
|
||||
'yaml',
|
||||
|
|
|
|||
Loading…
Reference in New Issue