diff --git a/config/nvim/init.fnl b/config/nvim/init.fnl index ea8f358..96cd61f 100644 --- a/config/nvim/init.fnl +++ b/config/nvim/init.fnl @@ -1,7 +1,7 @@ (let [o vim.opt g vim.g] ;; Preamble - (vim.cmd "filetype plugin indent on") + (vim.cmd.filetype "plugin indent on") (set o.shell :/bin/sh) ;; Various Options (set o.spelllang [:en :de]) diff --git a/config/nvim/nifoc/diagnostic.fnl b/config/nvim/nifoc/diagnostic.fnl index 254283b..a5f1e2b 100644 --- a/config/nvim/nifoc/diagnostic.fnl +++ b/config/nvim/nifoc/diagnostic.fnl @@ -1,5 +1,5 @@ (let [mod {} - cmd vim.cmd + sign vim.cmd.sign api vim.api keymap (require :nifoc.keymap) augroup (vim.api.nvim_create_augroup :NifocDiagnostic {:clear true}) @@ -15,10 +15,10 @@ :float {:border :rounded :source true} :update_in_insert false :severity_sort true}) - (cmd "sign define DiagnosticSignError text= texthl=DiagnosticSignError linehl= numhl=DiagnosticSignError") - (cmd "sign define DiagnosticSignWarn text= texthl=DiagnosticSignWarn linehl= numhl=DiagnosticSignWarn") - (cmd "sign define DiagnosticSignInfo text= texthl=DiagnosticSignInfo linehl= numhl=DiagnosticSignInfo") - (cmd "sign define DiagnosticSignHint text= texthl=DiagnosticSignHint linehl= numhl=DiagnosticSignHint")) + (sign "define DiagnosticSignError text= texthl=DiagnosticSignError linehl= numhl=DiagnosticSignError") + (sign "define DiagnosticSignWarn text= texthl=DiagnosticSignWarn linehl= numhl=DiagnosticSignWarn") + (sign "define DiagnosticSignInfo text= texthl=DiagnosticSignInfo linehl= numhl=DiagnosticSignInfo") + (sign "define DiagnosticSignHint text= texthl=DiagnosticSignHint linehl= numhl=DiagnosticSignHint")) (fn mod.maybe-enable-diagnostics [bufnr] (when (= vim.b.nifoc_diagnostics_enabled nil)