Configure and fix syntax

This commit is contained in:
Steins7 2022-10-18 18:17:43 +02:00
parent cd2169b12e
commit c65ba7a9f6
5 changed files with 33 additions and 9 deletions

10
ftplugin/c.lua Normal file
View File

@ -0,0 +1,10 @@
vim.g.cino = "N-s"
vim.o.textwidth = 80
vim.g.cpp_attributes_highlight = true
vim.g.cpp_member_highlight = true
vim.g.cpp_simple_highlight = true
-- remove white spaces at end of line
vim.api.nvim_create_autocmd({'BufWritePre'}, {command = '%s;\\s\\+$;;e'})

5
ftplugin/lua.lua Normal file
View File

@ -0,0 +1,5 @@
vim.o.textwidth = 100
-- remove white spaces at end of line
vim.api.nvim_create_autocmd({'BufWritePre'}, {command = '%s;\\s\\+$;;e'})

5
ftplugin/rust.lua Normal file
View File

@ -0,0 +1,5 @@
vim.o.textwidth = 100
-- remove white spaces at end of line
vim.api.nvim_create_autocmd({'BufWritePre'}, {command = '%s;\\s\\+$;;e'})

View File

@ -1,6 +1,7 @@
-- Set global configuration
vim.g.mapleader = ","
vim.o.number = true
vim.o.colorcolumn = '+1'
-- Set indentation options
vim.o.tabstop = 4

View File

@ -80,6 +80,9 @@ local function manage_plugins()
vim.cmd('set signcolumn=number')
end
},
-- Syntax highlight
["https://github.com/bfrg/vim-cpp-modern.git"] = {},
}
local manager = require("plogins").manage(plugins)