nvim: fix indenting when editing nix files
This commit is contained in:
parent
1dbd99e909
commit
ec34a89688
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
local set = vim.o
|
local set = vim.o
|
||||||
|
local autocmd = vim.api.nvim_create_autocmd
|
||||||
|
|
||||||
-- Settings
|
-- Settings
|
||||||
local tabsize = 3
|
local tabsize = 3
|
||||||
|
@ -40,6 +41,9 @@ set.listchars = 'trail:~,tab:│ ,nbsp:␣,lead:·,extends:…,precedes:…'
|
||||||
set.list = false
|
set.list = false
|
||||||
set.mousemodel = 'extend'
|
set.mousemodel = 'extend'
|
||||||
|
|
||||||
|
-- Disable smartindent when editing `nix` files
|
||||||
|
autocmd("BufEnter", { pattern = "*.nix", callback = function() vim.opt_local.smartindent = false end })
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
--- Key bindings (needs to be translated?) ---
|
--- Key bindings (needs to be translated?) ---
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue