Update config

This commit is contained in:
Sheldon Lee 2024-12-02 13:39:11 +08:00
parent 49ad47e5d2
commit d0204a815b

View File

@ -157,6 +157,8 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor. -- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10 vim.opt.scrolloff = 10
vim.opt.linebreak = true
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()` -- See `:help vim.keymap.set()`
@ -693,7 +695,7 @@ require('lazy').setup({
-- 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 = { c = true, cpp = true }
local disable_filetypes = {} local disable_filetypes = { cpp = true }
local lsp_format_opt local lsp_format_opt
if disable_filetypes[vim.bo[bufnr].filetype] then if disable_filetypes[vim.bo[bufnr].filetype] then
lsp_format_opt = 'never' lsp_format_opt = 'never'