diff --git a/.config/nvim/ftplugin/python.lua b/.config/nvim/ftplugin/python.lua index a7cb556..e437f58 100644 --- a/.config/nvim/ftplugin/python.lua +++ b/.config/nvim/ftplugin/python.lua @@ -1,5 +1,4 @@ -- variables -vim.g.black_linelength = 79 -- keybindings vim.keymap.set("n", "f", "Black", {buffer=true}) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 729c350..f839fdd 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -2,43 +2,48 @@ ----- variables ----- --------------------- -vim.g.mapleader = " " +vim.g.mapleader = " " -vim.o.expandtab = true -vim.o.smartindent = true -vim.o.shiftwidth = 4 -vim.o.tabstop = 4 +vim.o.expandtab = true +vim.o.smartindent = true +vim.o.shiftwidth = 4 +vim.o.tabstop = 4 +vim.o.cino = "(s" +vim.g.python_indent = { + open_paren = "shiftwidth()" +} -vim.o.list = true -vim.o.listchars = "tab:> ,trail:-,nbsp:+,leadmultispace:│ " +vim.o.list = true +vim.o.listchars = "tab:> ,trail:-,nbsp:+,leadmultispace:│ " -vim.o.number = true -vim.o.relativenumber = true -vim.o.laststatus = 3 +vim.o.number = true +vim.o.relativenumber = true +vim.o.laststatus = 3 -vim.o.ignorecase = true -vim.o.smartcase = true +vim.o.ignorecase = true +vim.o.smartcase = true -vim.o.guicursor = "" +vim.o.guicursor = "" -vim.o.path = vim.o.path .. ",**" -vim.o.suffixes = vim.o.suffixes .. ",.pyc,.hi" +vim.o.path = vim.o.path .. ",**" +vim.o.suffixes = vim.o.suffixes .. ",.pyc,.hi" -vim.o.foldmethod = "indent" -vim.o.foldlevel = 99 +vim.o.foldmethod = "indent" +vim.o.foldlevel = 99 -vim.o.grepprg = "grep -rn" +vim.o.grepprg = "grep -rn" -vim.o.scrolloff = 2 -vim.wo.colorcolumn = "80" +vim.o.scrolloff = 2 +vim.wo.colorcolumn = "80" +vim.g.black_linelength = 79 -vim.g.netrw_banner = 0 +vim.g.netrw_banner = 0 -vim.o.lazyredraw = true +vim.o.lazyredraw = true -vim.o.complete = vim.o.complete .. ",i" +vim.o.complete = vim.o.complete .. ",i" -vim.o.mousemodel = extend +vim.o.mousemodel = extend -------------------- ----- packages -----