will now use treesitters auto-indentation or only the default 'dumb' one if indentation is not supported.
This commit is contained in:
@@ -69,17 +69,10 @@ vim.cmd [[
|
|||||||
autocmd BufEnter *__virtual* setlocal buftype=nofile bufhidden=hide noswapfile
|
autocmd BufEnter *__virtual* setlocal buftype=nofile bufhidden=hide noswapfile
|
||||||
|
|
||||||
let g:rustfmt_autosave = 1
|
let g:rustfmt_autosave = 1
|
||||||
]]
|
|
||||||
|
|
||||||
vim.g.c_syntax_for_h = 1
|
" remove annoying and bad indentation
|
||||||
vim.g.python_indent = { -- Fixes retarded default python indentation.
|
autocmd FileType * setlocal indentexpr=
|
||||||
open_paren = 'shiftwidth()',
|
]]
|
||||||
nested_paren = 'shiftwidth()',
|
|
||||||
continue = 'shiftwidth()',
|
|
||||||
closed_paren_align_last_line = false,
|
|
||||||
searchpair_timeout = 300,
|
|
||||||
}
|
|
||||||
-- TODO fix all the idiotic default indentation settings
|
|
||||||
|
|
||||||
local function file_exists(name) --{{{1
|
local function file_exists(name) --{{{1
|
||||||
local f = io.open(name,"r")
|
local f = io.open(name,"r")
|
||||||
@@ -310,6 +303,9 @@ require'lazy'.setup{ --{{{1
|
|||||||
ensure_installed = "all",
|
ensure_installed = "all",
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
indent = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user