configs
This commit is contained in:
@@ -1 +1,4 @@
|
||||
vim.opt_local.textwidth = 80
|
||||
local o = vim.opt_local
|
||||
|
||||
o.textwidth = 80
|
||||
o.expandtab = false
|
||||
|
||||
3
nvim/.config/nvim/after/ftplugin/python.lua
Normal file
3
nvim/.config/nvim/after/ftplugin/python.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
local o = vim.opt_local
|
||||
|
||||
o.expandtab = false
|
||||
@@ -5,9 +5,11 @@ local o = vim.opt
|
||||
g.mapleader = " " -- Uses space as the global leader key.
|
||||
g.maplocalleader = " " -- Uses space as the local leader key.
|
||||
|
||||
-- Interface
|
||||
-- Layout and display
|
||||
o.number = true -- Shows absolute line numbers.
|
||||
o.relativenumber = true -- Shows relative numbers for easier motion.
|
||||
o.cursorline = true -- Highlights the line under the cursor.
|
||||
o.textwidth = 80 -- Wraps inserted text after 80 columns when formatting is active.
|
||||
o.scrolloff = 8 -- Keeps context lines visible around the cursor.
|
||||
o.signcolumn = "yes" -- Always reserves space for signs in the gutter.
|
||||
o.colorcolumn = "+1" -- Highlights the preferred maximum line width.
|
||||
@@ -23,11 +25,11 @@ o.listchars = {
|
||||
o.termguicolors = true -- Enables full RGB color support.
|
||||
o.mouse = "" -- Disables mouse support.
|
||||
|
||||
-- Editing
|
||||
-- Indentation and editing
|
||||
o.tabstop = 4 -- Renders tab characters as four columns.
|
||||
o.softtabstop = 4 -- Makes tab/backspace feel like four spaces.
|
||||
o.shiftwidth = 4 -- Uses four columns for each indent step.
|
||||
o.expandtab = false -- Keeps literal tab characters instead of spaces.
|
||||
o.expandtab = true -- Inserts spaces when indenting by default.
|
||||
o.smartindent = true -- Adds indentation automatically on new lines.
|
||||
o.swapfile = false -- Disables swapfile creation.
|
||||
|
||||
@@ -38,4 +40,3 @@ o.spelllang = { "en_us" } -- Uses US English for spell checking.
|
||||
|
||||
-- Shell
|
||||
o.shell = "bash" -- Runs shell commands through bash.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user