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'`
|
-- See `:help 'confirm'`
|
||||||
vim.o.confirm = true
|
vim.o.confirm = true
|
||||||
|
|
||||||
|
-- Allow loading local .nvim.lua files
|
||||||
|
vim.o.exrc = true
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
-- See `:help vim.keymap.set()`
|
-- See `:help vim.keymap.set()`
|
||||||
|
|
||||||
|
|
@ -708,7 +711,7 @@ require('lazy').setup({
|
||||||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||||
-- have a well standardized coding style. You can add additional
|
-- have a well standardized coding style. You can add additional
|
||||||
-- languages here or re-enable it for the disabled ones.
|
-- 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
|
if disable_filetypes[vim.bo[bufnr].filetype] then
|
||||||
return nil
|
return nil
|
||||||
else
|
else
|
||||||
|
|
@ -908,7 +911,6 @@ require('lazy').setup({
|
||||||
'python',
|
'python',
|
||||||
'diff',
|
'diff',
|
||||||
'json',
|
'json',
|
||||||
'jsonc',
|
|
||||||
'html',
|
'html',
|
||||||
'xml',
|
'xml',
|
||||||
'yaml',
|
'yaml',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue