Compare commits
4 Commits
c81375285a
...
9c83b4f6ca
Author | SHA1 | Date |
---|---|---|
Jasper Bok | 9c83b4f6ca | |
Jasper Bok | 0a132c2628 | |
Jasper Bok | c421a7451b | |
Jasper Bok | 4b79b603d3 |
|
@ -78,6 +78,20 @@ vim.api.nvim_create_autocmd('FileType', {
|
||||||
command = 'setlocal tabstop=3|setlocal shiftwidth=3|setlocal softtabstop=3|setlocal tw=72'
|
command = 'setlocal tabstop=3|setlocal shiftwidth=3|setlocal softtabstop=3|setlocal tw=72'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local json_augroup = vim.api.nvim_create_augroup('filetype_json', {clear = true})
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
pattern = 'json',
|
||||||
|
group = json_augroup,
|
||||||
|
command = 'setlocal tabstop=2|setlocal shiftwidth=2|setlocal softtabstop=2'
|
||||||
|
})
|
||||||
|
|
||||||
|
local asciidoc_augroup = vim.api.nvim_create_augroup('filetype_asciidoc', {clear = true})
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
pattern = 'asciidoc',
|
||||||
|
group = asciidoc_augroup,
|
||||||
|
command = 'setlocal tabstop=2|setlocal shiftwidth=2|setlocal softtabstop=2|setlocal tw=72|setlocal spell|setlocal spelllang=nl'
|
||||||
|
})
|
||||||
|
|
||||||
-- ----------------------------------
|
-- ----------------------------------
|
||||||
-- Plugins
|
-- Plugins
|
||||||
-- ----------------------------------
|
-- ----------------------------------
|
||||||
|
@ -86,6 +100,8 @@ local Plug = vim.fn["plug#"]
|
||||||
|
|
||||||
vim.call("plug#begin", "~/.config/nvim/plugged")
|
vim.call("plug#begin", "~/.config/nvim/plugged")
|
||||||
|
|
||||||
|
Plug('nvim-lua/plenary.nvim') -- Requirement for telescope.
|
||||||
|
Plug('nvim-telescope/telescope.nvim', {tag = '0.1.5' })
|
||||||
Plug('numToStr/Comment.nvim')
|
Plug('numToStr/Comment.nvim')
|
||||||
Plug('junegunn/fzf')
|
Plug('junegunn/fzf')
|
||||||
Plug('arcticicestudio/nord-vim')
|
Plug('arcticicestudio/nord-vim')
|
||||||
|
@ -111,6 +127,14 @@ require("Comment").setup()
|
||||||
-- ------------------
|
-- ------------------
|
||||||
vim.cmd("nnoremap <C-p> :FZF<CR>")
|
vim.cmd("nnoremap <C-p> :FZF<CR>")
|
||||||
|
|
||||||
|
-- Telescope
|
||||||
|
-- ------------------
|
||||||
|
local builtin = require('telescope.builtin')
|
||||||
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||||
|
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
|
||||||
|
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
|
||||||
|
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
|
||||||
|
|
||||||
-- nnn
|
-- nnn
|
||||||
-- ------------------
|
-- ------------------
|
||||||
|
|
||||||
|
@ -126,4 +150,4 @@ vim.cmd("let g:nnn#session = 'global'")
|
||||||
-- indent-blankline
|
-- indent-blankline
|
||||||
-- ------------------
|
-- ------------------
|
||||||
|
|
||||||
require('indent_blankline').setup()
|
require('ibl').setup()
|
||||||
|
|
Loading…
Reference in New Issue