mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-25 04:41:46 +00:00
specified format settings
This commit is contained in:
parent
ab694ae6c0
commit
7a8ca584c8
25
init.lua
25
init.lua
@ -10,6 +10,25 @@ vim.opt.shellquote = ''
|
||||
vim.opt.shellredir = '2>&1 | Out-File -Encoding UTF8 %s'
|
||||
vim.opt.shellpipe = '2>&1 | Out-File -Encoding UTF8 %s'
|
||||
|
||||
-- Format settings
|
||||
-- Line numbers
|
||||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
-- Indenting
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
|
||||
-- Line wrap
|
||||
vim.opt.wrap = false
|
||||
|
||||
-- Search
|
||||
vim.opt.scrolloff = 8
|
||||
|
||||
-- Set <space> as the leader key
|
||||
-- See `:help mapleader`
|
||||
vim.g.mapleader = ' '
|
||||
@ -176,7 +195,6 @@ require('lazy').setup({
|
||||
{
|
||||
-- Add indentation guides even on blank lines
|
||||
'lukas-reineke/indent-blankline.nvim',
|
||||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||
-- See `:help ibl`
|
||||
main = 'ibl',
|
||||
opts = {},
|
||||
@ -193,7 +211,8 @@ require('lazy').setup({
|
||||
'nvim-lua/plenary.nvim',
|
||||
{
|
||||
'nvim-telescope/telescope-fzf-native.nvim',
|
||||
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release; cmake --build build --config Release; cmake --install build --prefix build',
|
||||
build =
|
||||
'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release; cmake --build build --config Release; cmake --install build --prefix build',
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -207,7 +226,7 @@ require('lazy').setup({
|
||||
build = ':TSUpdate',
|
||||
},
|
||||
|
||||
-- require 'kickstart.plugins.autoformat',
|
||||
require 'kickstart.plugins.autoformat',
|
||||
-- require 'kickstart.plugins.debug',
|
||||
}, {})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user