diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index d9788ae..42d8319 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -4,18 +4,32 @@ vim.g.maplocalleader = " " -- auto format vim.g.autoformat = true +-- root dir detection +-- Each entry can be: +-- * the name of a detector function like `lsp` or `cwd` +-- * a pattern or array of patterns like `.git` or `lua`. +-- * a function with signature `function(buf) -> string|string[]` +vim.g.root_spec = { "lsp", { ".git", "lua" }, "cwd" } + -- Options for the statuscolumn vim.g.tmm_statuscolumn = { folds_open = false, -- show fold sign when fold is open folds_githl = false, -- highlight fold sign with git sign color } +-- Hide deprecation warnings +vim.g.deprecation_warnings = false + -- Set filetype to `bigfile` for files larger than 1.5 MB -- Only vim syntax will be enabled (with the correct filetype) -- LSP, treesitter and other ft plugins will be disabled. -- mini.animate will also be disabled. vim.g.bigfile_size = 1024 * 1024 * 1.5 -- 1.5 MB +-- Show the current document symbols location from Trouble in lualine +-- You can disable this for a buffer by setting `vim.b.trouble_lualine = false` +vim.g.trouble_lualine = true + local opt = vim.opt opt.autowrite = true -- Enable auto write opt.clipboard = vim.env.SSH_TTY and "" or "unnamedplus" -- Sync with system clipboard