nvim-config/fnl/init.fnl

74 lines
1.4 KiB
Plaintext
Raw Normal View History

2021-04-04 23:18:26 +07:00
(module user.config
2021-07-12 01:56:45 +07:00
{require {nvim aniseed.nvim}})
2021-04-04 23:18:26 +07:00
(defn- noremap [mode from to]
"Sets a mapping with {:noremap true}."
(nvim.set_keymap mode from to {:noremap true}))
(set nvim.g.mapleader ",")
(set nvim.g.maplocalleader ",")
(noremap :i :jj :<esc>)
(noremap :n :j :gj)
(noremap :n :k :gk)
2021-04-05 17:15:52 +07:00
(noremap :t :<esc> :<C-\><C-n>)
(noremap :t :jj :<esc>)
(nvim.set_keymap
"n"
"<leader>s"
":mksession!<CR>"
{:noremap true :silent true})
(nvim.set_keymap
"n"
"[<Space>"
":call append(line('.') - 1, repeat([''], v:count1))<CR>"
{:noremap true :silent true})
(nvim.set_keymap
"n"
"]<Space>"
":call append(line('.'), repeat([''], v:count1))<CR>"
{:noremap true :silent true})
2021-04-04 23:18:26 +07:00
(set nvim.o.tabstop 2)
(set nvim.bo.tabstop 2)
(set nvim.o.shiftwidth 2)
(set nvim.bo.shiftwidth 2)
(set nvim.o.softtabstop 2)
(set nvim.bo.softtabstop 2)
(set nvim.o.expandtab true)
(set nvim.bo.expandtab true)
(set nvim.o.breakindent true)
(set nvim.wo.breakindent true)
(set nvim.o.linebreak true)
(set nvim.wo.linebreak true)
2021-04-04 23:18:26 +07:00
(set nvim.o.number true)
(set nvim.wo.number true)
(set nvim.o.relativenumber true)
(set nvim.wo.relativenumber true)
2021-04-23 17:00:27 +07:00
(set nvim.o.signcolumn "yes")
(set nvim.wo.signcolumn "yes")
(set nvim.o.termguicolors true)
2021-07-15 02:34:45 +07:00
; neovide
2021-12-07 22:21:25 +07:00
; (set nvim.g.neovide_fullscreen true)
2024-03-16 21:35:27 +07:00
(set nvim.g.neovide_cursor_vfx_mode "railgun")
2021-12-07 22:21:25 +07:00
(set nvim.o.guifont "FiraCode Nerd Font Mono:h16")
2021-07-15 02:34:45 +07:00
2021-07-10 04:05:30 +07:00
(require "plugins")
2021-04-04 23:18:26 +07:00
(require "settings")
2021-07-12 01:56:45 +07:00
(require "lsp")