mirror of
https://github.com/Tilo-K/neovim-config.git
synced 2026-07-03 13:43:02 +00:00
Changed autoformat and tabs
This commit is contained in:
12
init.lua
12
init.lua
@@ -501,7 +501,6 @@ vim.cmd([[
|
||||
|
||||
|
||||
vim.g.rustfmt_autosave = 1
|
||||
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]
|
||||
|
||||
vim.api.nvim_set_keymap('i', '<F2>', '<cmd>lua require("renamer").rename()<cr>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>rn', '<cmd>lua require("renamer").rename()<cr>', { noremap = true, silent = true })
|
||||
@@ -591,3 +590,14 @@ vim.api.nvim_set_keymap('n', '<Leader>m', '<cmd>lua require("harpoon.mark").add_
|
||||
{ noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<Leader><Tab>', '<cmd>lua require("harpoon.ui").toggle_quick_menu()<CR>',
|
||||
{ noremap = true, silent = true })
|
||||
|
||||
vim.opt.tabstop = 4 -- The width of a TAB is set to 4.
|
||||
-- Still it is a \t. It is just that
|
||||
-- Neovim will interpret it to be having
|
||||
-- a width of 4.
|
||||
|
||||
vim.opt.shiftwidth = 4 -- Indents will have a width of 4
|
||||
|
||||
vim.opt.softtabstop = 4 -- Sets the number of columns for a TAB
|
||||
|
||||
vim.opt.expandtab = true -- Expand TABs to spaces
|
||||
|
||||
Reference in New Issue
Block a user