summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 23:23:59 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 23:23:59 +0200
commit936272fc2a5ae07470816d1b63f79bfadb3ef979 (patch)
treee040dcaf94b2199664847bf6521621538f316399
parent143d0de99399e9d6b4779ebd91a1cbcee5df5dd5 (diff)
fix: typo bugs
-rw-r--r--fnl/config/alpha.fnl40
-rw-r--r--fnl/config/autocmd.fnl2
-rw-r--r--fnl/config/better-escape.fnl2
-rw-r--r--fnl/config/bufferline.fnl2
-rw-r--r--fnl/config/hop.fnl6
-rw-r--r--fnl/config/lsp/null-ls.fnl4
-rw-r--r--fnl/config/lsp/settings/jsonls.fnl2
-rw-r--r--fnl/config/ncomment.fnl2
-rw-r--r--fnl/config/nvim-tree.fnl4
-rw-r--r--fnl/config/orgmode.fnl2
-rw-r--r--fnl/config/spectre.fnl2
-rw-r--r--fnl/config/which-key.fnl2
-rw-r--r--fnl/plugins.fnl2
-rw-r--r--fnl/settings/keymaps.fnl2
-rw-r--r--fnl/settings/options.fnl2
15 files changed, 38 insertions, 38 deletions
diff --git a/fnl/config/alpha.fnl b/fnl/config/alpha.fnl
index 7febc6c..636dd56 100644
--- a/fnl/config/alpha.fnl
+++ b/fnl/config/alpha.fnl
@@ -2,26 +2,26 @@
(module config.alpha
{autoload {util util}})
-(def- ascii-art {
- " ##############..... ############## ",
- " ##############......############## ",
- " ##########..........########## ",
- " ##########........########## ",
- " ##########.......########## ",
- " ##########.....##########.. ",
- " ##########....##########..... ",
- " ..##########..##########......... ",
- " ....##########.#########............. ",
- " ..################JJJ............ ",
- " ################............. ",
- " ##############.JJJ.JJJJJJJJJJ ",
- " ############...JJ...JJ..JJ JJ ",
- " ##########....JJ...JJ..JJ JJ ",
- " ########......JJJ..JJJ JJJ JJJ ",
- " ###### ......... ",
- " ..... ",
- " . ",
-})
+(def- ascii-art [
+ " ##############..... ############## "
+ " ##############......############## "
+ " ##########..........########## "
+ " ##########........########## "
+ " ##########.......########## "
+ " ##########.....##########.. "
+ " ##########....##########..... "
+ " ..##########..##########......... "
+ " ....##########.#########............. "
+ " ..################JJJ............ "
+ " ################............. "
+ " ##############.JJJ.JJJJJJJJJJ "
+ " ############...JJ...JJ..JJ JJ "
+ " ##########....JJ...JJ..JJ JJ "
+ " ########......JJJ..JJJ JJJ JJJ "
+ " ###### ......... "
+ " ..... "
+ " . "
+])
(let [alpha (util.load-plugin :alpha)]
(let [dashboard (require :alpha.themes.dashboard)]
diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl
index 77d20c4..e5bf556 100644
--- a/fnl/config/autocmd.fnl
+++ b/fnl/config/autocmd.fnl
@@ -13,7 +13,7 @@
(util.autocmd
:TextYankPost
{:pattern [ :* ]
- :command "silent!lua require('vim.highlight').on_yank({higroup = 'Search', timeout = 200}"
+ :callback (lambda [] (vim.highlight.on_yank {:timeout 200})
:group :_general_settings})
(util.autocmd
diff --git a/fnl/config/better-escape.fnl b/fnl/config/better-escape.fnl
index 5c993b7..e486927 100644
--- a/fnl/config/better-escape.fnl
+++ b/fnl/config/better-escape.fnl
@@ -8,4 +8,4 @@
:mapping ["jk" "jj"]
:timeout vim.o.timeoutlen
:clear_empty_lines false
- :keys "<Esc>"}}))
+ :keys "<Esc>"}))
diff --git a/fnl/config/bufferline.fnl b/fnl/config/bufferline.fnl
index fac26a4..f4ec98b 100644
--- a/fnl/config/bufferline.fnl
+++ b/fnl/config/bufferline.fnl
@@ -19,7 +19,7 @@
:tab_size 21
:diagnostics false
:diagnostics_update_in_insert false
- :offsets { { :filetype "NvimTree" :text "" :padding 1 } }
+ :offsets [ { :filetype "NvimTree" :text "" :padding 1 } ]
:show_buffer_icons false
:show_buffer_close_icons false
:show_close_icon false
diff --git a/fnl/config/hop.fnl b/fnl/config/hop.fnl
index 9f767b6..53ba9e9 100644
--- a/fnl/config/hop.fnl
+++ b/fnl/config/hop.fnl
@@ -3,8 +3,8 @@
{autoload {util util
nvim aniseed.nvim}})
-(set nvim.set_keymap "n" "s" ":HopChar2<cr>" { :silent true })
-(set nvim.set_keymap "n" "S" ":HopWord<cr>" { :silent true })
-
(let [hop (util.load-plugin :hop)]
(hop.setup {}))
+
+(nvim.set_keymap "n" "s" ":HopChar2<cr>" { :silent true })
+(nvim.set_keymap "n" "S" ":HopWord<cr>" { :silent true })
diff --git a/fnl/config/lsp/null-ls.fnl b/fnl/config/lsp/null-ls.fnl
index 0f9e459..4f737f7 100644
--- a/fnl/config/lsp/null-ls.fnl
+++ b/fnl/config/lsp/null-ls.fnl
@@ -3,8 +3,8 @@
{autoload {util util}})
(let [null-ls (util.load-plugin :null-ls)]
- (let [formatting null_ls.builtins.formatting
- diagnostics null_ls.builtins.diagnostics])
+ (let [formatting (null_ls.builtins.formatting)
+ diagnostics (null_ls.builtins.diagnostics)])
(null-ls.setup
{:debug false
:sources [
diff --git a/fnl/config/lsp/settings/jsonls.fnl b/fnl/config/lsp/settings/jsonls.fnl
index 5f4b18b..93378dc 100644
--- a/fnl/config/lsp/settings/jsonls.fnl
+++ b/fnl/config/lsp/settings/jsonls.fnl
@@ -13,4 +13,4 @@
:commands {
:Format {
(fn []
- (vim.lsp.buf.range_formatting {} [ 0 0 ] [ (vim.fn.line "$" 0) ]))}}}})))
+ (vim.lsp.buf.range_formatting {} [ 0 0 ] [ (vim.fn.line "$" 0) ]))}}}}))
diff --git a/fnl/config/ncomment.fnl b/fnl/config/ncomment.fnl
index b71fd1e..2c983df 100644
--- a/fnl/config/ncomment.fnl
+++ b/fnl/config/ncomment.fnl
@@ -11,7 +11,7 @@
((require :ts_context_commentstring.utils).get_cursor_location)
(or (= ctx.motion U.motion.v) (= ctx.motion U.cmotion.V))
((require :ts_context_commentstring.utils).get_visual_start_location)
- (nil)))
+ nil))
(defn- pre-hook [ctx]
(let [U (require :Comment.utils)]
diff --git a/fnl/config/nvim-tree.fnl b/fnl/config/nvim-tree.fnl
index 4b8d8bb..c6dd93a 100644
--- a/fnl/config/nvim-tree.fnl
+++ b/fnl/config/nvim-tree.fnl
@@ -47,10 +47,10 @@
:signcolumn "yes"
:mappings {
:custom_only false
- :list {
+ :list [
{ :key [ "l" "<CR>" "o" ] :cb (tree_cb "edit") }
{ :key "h" :cb (tree_cb "close_node") }
- { :key "v" :cb (tree_cb "vsplit") }}}}
+ { :key "v" :cb (tree_cb "vsplit") }}}]
:hijack_directories {
:enable true
:auto_open true}
diff --git a/fnl/config/orgmode.fnl b/fnl/config/orgmode.fnl
index 1ac245a..d8af6d4 100644
--- a/fnl/config/orgmode.fnl
+++ b/fnl/config/orgmode.fnl
@@ -6,7 +6,7 @@
(do
(orgmode.setup_ts_grammar)
(orgmode.setup
- {:org_agenda_files { "~/.local/share/org/**/*" }
+ {:org_agenda_files [ "~/.local/share/org/**/*" ]
:org_default_notes_file "~/.local/share/org/refile.org"
:org_agenda_templates {
:t { :description "Task" :template "* TODO %?\n %u" }
diff --git a/fnl/config/spectre.fnl b/fnl/config/spectre.fnl
index 2716178..3a05c0b 100644
--- a/fnl/config/spectre.fnl
+++ b/fnl/config/spectre.fnl
@@ -91,7 +91,7 @@
:default {
:find {
:cmd "rg"
- :options { "ignore-case" }}
+ :options [ "ignore-case" ]}
:replace {
:cmd "sed"}}
:replace_vim_cmd "cdo"
diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl
index c98609d..39dcdcf 100644
--- a/fnl/config/which-key.fnl
+++ b/fnl/config/which-key.fnl
@@ -52,7 +52,7 @@
:nowait true})
(def- mappings {
- :k [ '<cmd>lua require("Comment.api").toggle_current_linewise()<CR>' "Comment" ]
+ :k [ "<cmd>lua require('Comment.api').toggle_current_linewise()<CR>" "Comment" ]
:a [ "<cmd>Alpha<cr>" "Alpha" ]
:b [
"<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer false})<cr>"
diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl
index 0205f87..5caf7e8 100644
--- a/fnl/plugins.fnl
+++ b/fnl/plugins.fnl
@@ -49,7 +49,7 @@
:akinsho/bufferline.nvim {}
:moll/vim-bbye {}
- :nvim-lualine/lualine.nvim { :requires "kyazdani42/nvim-web-devicons" :opt true }}
+ :nvim-lualine/lualine.nvim { :requires "kyazdani42/nvim-web-devicons" :opt true }
:ahmedkhalf/project.nvim {}
:goolord/alpha-nvim {}
:antoinemadec/FixCursorHold.nvim {} ;; This is needed to fix lsp doc highlight
diff --git a/fnl/settings/keymaps.fnl b/fnl/settings/keymaps.fnl
index 70f8896..ae4ff2b 100644
--- a/fnl/settings/keymaps.fnl
+++ b/fnl/settings/keymaps.fnl
@@ -52,4 +52,4 @@
;; Move text up and down
(map "v" "<A-j>" ":m .+1<CR>==" opts)
(map "v" "<A-k>" ":m .-2<CR>==" opts)
-(map "v" "p" '"_dP' opts)
+(map "v" "p" "\"_dP" opts)
diff --git a/fnl/settings/options.fnl b/fnl/settings/options.fnl
index a7bfb44..3c2e548 100644
--- a/fnl/settings/options.fnl
+++ b/fnl/settings/options.fnl
@@ -42,7 +42,7 @@
(defn- apply-opts [opts]
(each [k v (pairs opts)]
- (set vim.opt[k] v)))
+ (set vim.opt.k v)))
(set vim.cmd "set whichwrap+=<,>,[,],h,l")
(set vim.cmd [[set iskeyword+=-]])