improving startup time by using lazy loading or filetype loading
This commit is contained in:
parent
bdb655c5a1
commit
7f1b34fd6f
62 changed files with 1285 additions and 561 deletions
15
after/ftplugin/rust.lua
Normal file
15
after/ftplugin/rust.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- Set buffer-local options for Rust files
|
||||
vim.opt_local.expandtab = true
|
||||
vim.opt_local.autoindent = true
|
||||
vim.opt_local.smartindent = true
|
||||
vim.opt_local.shiftwidth = 4
|
||||
vim.opt_local.tabstop = 4
|
||||
vim.opt_local.softtabstop = 4
|
||||
vim.opt_local.textwidth = 80
|
||||
vim.opt_local.colorcolumn = '80'
|
||||
|
||||
-- Define key mappings or other configurations specific to Rust
|
||||
-- For example:
|
||||
vim.keymap.set('n', '<leader>r', '<CMD>Cargo run<CR>', { desc = 'Run the current Rust project', noremap = true })
|
||||
vim.keymap.set('n', '<leader>c', '<CMD>Cargo check<CR>', { desc = 'Check the current Rust project', noremap = true })
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue