Compare commits
3 Commits
ba80d54a52
...
dbcab8ada3
| Author | SHA1 | Date | |
|---|---|---|---|
| dbcab8ada3 | |||
| d66b0a8fb5 | |||
| cfe6ea12f7 |
@@ -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
|
||||
@@ -69,12 +69,12 @@ map("n", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" })
|
||||
|
||||
-- diagnostics only on error.
|
||||
map("n", "g]", function()
|
||||
vim.diagnostic.goto_next({
|
||||
vim.lsp.diagnostic.goto_next({
|
||||
severity = vim.diagnostic.severity.ERROR,
|
||||
})
|
||||
end, { desc = "next error" })
|
||||
map("n", "g[", function()
|
||||
vim.diagnostic.goto_prev({
|
||||
vim.lsp.diagnostic.goto_prev({
|
||||
severity = vim.diagnostic.severity.ERROR,
|
||||
})
|
||||
end, { desc = "prev error" })
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -4,4 +4,4 @@ require("romanzy.plugins.oil")
|
||||
require("romanzy.plugins.telescope")
|
||||
require("romanzy.plugins.nvim-treesitter")
|
||||
require("romanzy.plugins.lsp")
|
||||
require("romanzy.plugins.header42")
|
||||
-- require("romanzy.plugins.header42")
|
||||
|
||||
@@ -15,13 +15,10 @@ require("telescope").setup({
|
||||
filesize_limit = 0.1, -- in MB
|
||||
},
|
||||
initial_mode = "insert",
|
||||
winblend = 30,
|
||||
-- winblend = 30,
|
||||
file_ignore_patterns = {
|
||||
"%.git/.*",
|
||||
"^%./lib/.*",
|
||||
"^%./bin/.*",
|
||||
"%.cache/.*",
|
||||
".*%.[od]",
|
||||
},
|
||||
layout_strategy = "flex",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user