summaryrefslogtreecommitdiff
path: root/config/nvim/lua/options.lua
diff options
context:
space:
mode:
author2025-06-09 13:43:45 +0300
committer2025-06-09 13:55:38 +0300
commit97af93b2a8ebc89364852e3f63e9fd8cfedaeedf (patch)
tree27e2added74ee6c0ff91c9e7927491c661a8bb36 /config/nvim/lua/options.lua
parent04.06.2025 (diff)
downloaddotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.gz
dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.bz2
dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.xz
dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.zip
Перевёл dotfiles на stow
Diffstat (limited to 'config/nvim/lua/options.lua')
-rw-r--r--config/nvim/lua/options.lua68
1 files changed, 68 insertions, 0 deletions
diff --git a/config/nvim/lua/options.lua b/config/nvim/lua/options.lua
new file mode 100644
index 0000000..8d55306
--- /dev/null
+++ b/config/nvim/lua/options.lua
@@ -0,0 +1,68 @@
+local options = {
+ backup = false,
+ clipboard = "unnamedplus",
+ cmdheight = 2,
+ completeopt = { "menuone", "noselect" },
+ conceallevel = 0,
+ fileencoding = "utf-8",
+ hidden = true,
+ hlsearch = true,
+ ignorecase = true,
+ mouse = "",
+ pumheight = 10,
+ showmode = false,
+ showtabline = 2,
+ smartcase = true,
+ smartindent = true,
+ splitbelow = true,
+ splitright = true,
+ swapfile = false,
+ termguicolors = true,
+ undofile = true,
+ updatetime = 300,
+ writebackup = false,
+ shiftwidth = 4,
+ tabstop = 4,
+ cursorline = true,
+ number = true,
+ relativenumber = true,
+ numberwidth = 4,
+ signcolumn = "yes",
+ wrap = true,
+ scrolloff = 8,
+ sidescrolloff = 8,
+ syntax = "on",
+ foldmethod = "expr",
+ foldexpr = "v:lua.vim.treesitter.foldexpr()",
+ -- foldexpr = "nvim_treesitter#foldexpr()"
+ foldnestmax = 10,
+ foldlevel = 9,
+ -- foldlevelstart = 99,
+ scrolloff = 999,
+ so = vim.fn.floor(vim.fn.winheight(0) / 2),
+ guicursor = "n-v-c:block,i-ci-ve:hor10,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175",
+ langmap = "ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯЖ;ABCDEFGHIJKLMNOPQRSTUVWXYZ:,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz",
+ spelllang = "en,ru_yo",
+ spell = true,
+}
+vim.opt.formatoptions:append({ r = true, o = true })
+vim.opt.shortmess:append("c")
+
+for k, v in pairs(options) do
+ vim.opt[k] = v
+end
+vim.wo.foldmethod = "expr"
+vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
+vim.cmd("set whichwrap+=<,>,[,],h,l")
+vim.filetype.add({
+ extension = {
+ templ = "templ",
+ },
+ pattern = {
+ [".*/todo.txt"] = "todotxt",
+ },
+})
+
+vim.g.nightflyCursorColor = true
+vim.g.nightflyVirtualTextColor = true
+vim.g.nightflyTransparent = true