+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
8082579
main
1require ( "Comment" ). setup { mappings =false } 2local comment =require "Comment.ft" 3comment . beancount =";%s" 4comment . gn ="#%s" 5 6require ( "nvim-surround" ). setup {} 7 8vim . g . startuptime_exe_path ="nvim" 9require ( "bigfile" ). setup {} 10 11local lint =require "lint" 12lint . linters_by_ft ={ sh ={ "shellcheck" } , python ={ "ruff" } } 13local lint_group =vim . api . nvim_create_augroup ( "lint_group" , {} ) 14vim . api . nvim_create_autocmd ( { "BufEnter" , "BufWritePost" } , { 15group =lint_group , 16callback =function () lint . try_lint () end , 17} ) 18 19-- TODO: read breaking api changes and update 20-- stylua: ignore 21-- require("nvim-treesitter.configs").setup { 22-- highlight = { enable = true, 23-- disable = { "python" }, 24-- additional_vim_regex_highlighting = { "markdown" }, 25-- }, 26-- textobjects = { select = { enable = true, 27-- keymaps = { 28-- ["af"] = "@function.outer", ["if"] = "@function.inner", 29-- ["aa"] = "@parameter.outer", ["ia"] = "@parameter.inner", 30-- ["as"] = "@statement.outer", 31-- } 32-- }}, 33-- incremental_selection = { enable = true, 34-- keymaps = { 35-- init_selection = "<tab>", scope_incremental = "<CR>", 36-- node_incremental = "<tab>", node_decremental = "<s-tab>", 37-- }, 38-- }, 39-- } 40require ( "treesitter-context" ). setup { patterns ={ python ={ "if" , "elif" } } }