Configure and fix syntax
This commit is contained in:
parent
cd2169b12e
commit
c65ba7a9f6
10
ftplugin/c.lua
Normal file
10
ftplugin/c.lua
Normal 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
5
ftplugin/lua.lua
Normal 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
5
ftplugin/rust.lua
Normal 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'})
|
||||||
|
|
||||||
1
init.lua
1
init.lua
@ -1,6 +1,7 @@
|
|||||||
-- Set global configuration
|
-- Set global configuration
|
||||||
vim.g.mapleader = ","
|
vim.g.mapleader = ","
|
||||||
vim.o.number = true
|
vim.o.number = true
|
||||||
|
vim.o.colorcolumn = '+1'
|
||||||
|
|
||||||
-- Set indentation options
|
-- Set indentation options
|
||||||
vim.o.tabstop = 4
|
vim.o.tabstop = 4
|
||||||
|
|||||||
@ -80,6 +80,9 @@ local function manage_plugins()
|
|||||||
vim.cmd('set signcolumn=number')
|
vim.cmd('set signcolumn=number')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Syntax highlight
|
||||||
|
["https://github.com/bfrg/vim-cpp-modern.git"] = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
local manager = require("plogins").manage(plugins)
|
local manager = require("plogins").manage(plugins)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user