Skip to content

Commit

Permalink
nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesquembre committed Oct 5, 2024
1 parent 35ddad5 commit 4cf429d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dotfiles/neovim/myconfig.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@
{:pattern "dotenv"
:callback (fn [args]
(vim.treesitter.start args.buf "bash")
(set vim.o.commentstring "#%s"))})
(set vim.wo.commentstring "#\\ %s"))})

(nvim.create_autocmd
"FileType"
{:pattern "sql"
:callback (fn [args] (set vim.o.commentstring "--%s"))})
:callback (fn [args] (set vim.wo.commentstring "--\\ %s"))})

(vim.filetype.add
{:extension
Expand Down
2 changes: 1 addition & 1 deletion home-manager/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let
*/
buildLuaConfig = { configDir, moduleName, vars ? null, replacements ? null, excludeFiles ? [ ] }:
let
pname = "lua-config-${moduleName}";
pname = "user-lua-config-${moduleName}";
luaSrc = builtins.filterSource
(path: type:
(lib.hasSuffix ".lua" path) &&
Expand Down

0 comments on commit 4cf429d

Please sign in to comment.